euporie.core.widgets.inputs
Define a cell object with input are and rich outputs, and related objects.
Functions
|
Add a command to the centralized command system. |
|
Register a new config item. |
|
Get the current active (running) Application. |
|
Return an instance of a Lexer subclass that has alias in its aliases list. |
|
Enable when this buffer has the focus. |
|
Assign key-bindings to commands based on a dictionary. |
|
Merge multiple |
|
Update the key-binding registry. |
|
Return a filter which indicates if a window is scrollable. |
|
Accept both booleans and Filters as input and turn it into a Filter. |
Classes
|
Append the auto suggestion to the current line of the input. |
|
Turn any callable into a Filter. |
|
Auto suggest that can be turned on and of according to a certain condition. |
|
Wrapper around any other container that can change the visibility. |
|
Wrapper around other |
|
Processor that applies another processor, according to a certain condition. Example::. |
When we're in Vi block insert mode, display all the cursors. |
|
|
Lexer class that can dynamically returns any Lexer. |
Highlight the search terms that are used for highlighting the incremental search. |
|
|
When the cursor is on or right after a bracket, it highlights the matching bracket. |
Processor that highlights the selection in the document. |
|
|
Kernel input text areas. |
Margin that displays the line numbers of a |
|
A margin which indicates lines extending beyond the edge of the window. |
|
|
A named tuple which describes the state of a pager. |
|
Lexer that calls a pygments lexer. |
|
Margin displaying a scrollbar. |
|
Make trailing whitespace visible. |
|
Lexer that doesn't do any tokenizing and returns the whole input as one token. |
|
A widget to accept kernel input. |
|
Render tabs as spaces (instead of ^I) or make them visible (for instance, by replacing them with dots.) |
|
A simple input field. |
Exceptions
Raised if one of the lookup functions didn't find a matching class. |
- class euporie.core.widgets.inputs.KernelInput(kernel_tab: KernelTab, *args: Any, left_margins: Sequence[Margin] | None = None, right_margins: Sequence[Margin] | None = None, on_text_changed: Callable[[Buffer], None] | None = None, on_cursor_position_changed: Callable[[Buffer], None] | None = None, tempfile_suffix: str | Callable[[], str] = '', key_bindings: KeyBindingsBase | None = None, enable_history_search: FilterOrBool | None = False, wrap_lines: FilterOrBool = False, complete_while_typing: FilterOrBool = True, autosuggest_while_typing: FilterOrBool = True, validate_while_typing: FilterOrBool | None = None, **kwargs: Any)
Bases:
prompt_toolkit.widgets.base.TextArea
Kernel input text areas.
A customized text area for the cell input.
- property accept_handler: Optional[Callable[[prompt_toolkit.buffer.Buffer], bool]]
The accept handler. Called when the user accepts the input.
- property document: prompt_toolkit.document.Document
The Buffer document (text + cursor position).