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. |
|
Test whether value is True. |
|
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. |
Base class for auto suggestion implementations. |
|
|
Insert text before the input. |
|
The core data structure that holds the text and cursor position of the current input line and implements all text manipulations on top of it. |
|
Control for visualizing the content of a |
Base class for completer implementations. |
|
|
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::. |
alias of |
|
|
Highlight diagnostics. |
When we're in Vi block insert mode, display all the cursors. |
|
|
This is a immutable class around the text and cursor position, and contains methods for querying this data, e.g. |
|
Validator class that can dynamically returns any Validator. |
|
Completer class that can dynamically returns any Completer. |
|
Lexer class that can dynamically returns any Lexer. |
|
Validator class that can dynamically returns any Validator. |
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. |
|
A container which renders a stand-alone margin. |
|
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. |
|
Processor that masks the input. |
Manipulate the fragments for a given line in a |
|
|
Lexer that calls a pygments lexer. |
|
Class for storing a diagnostic report. |
|
Scroll offsets for the |
|
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. |
|
Several layouts, one stacked left/right of the other. |
Abstract base class for an input validator. |
|
|
Container that holds a control. |
Exceptions
Raised if one of the lookup functions didn't find a matching class. |
- class euporie.core.widgets.inputs.KernelInput(kernel_tab: KernelTab, text: str = '', multiline: FilterOrBool = True, password: FilterOrBool = False, lexer: Lexer | None = None, auto_suggest: AutoSuggest | None = None, completer: Completer | None = None, complete_while_typing: FilterOrBool = True, validator: Validator | None = None, accept_handler: BufferAcceptHandler | None = None, history: History | None = None, focusable: FilterOrBool = True, focus_on_click: FilterOrBool = True, wrap_lines: FilterOrBool = False, read_only: FilterOrBool = False, width: AnyDimension = None, height: AnyDimension = None, dont_extend_height: FilterOrBool = False, dont_extend_width: FilterOrBool = False, line_numbers: bool = False, get_line_prefix: GetLinePrefixCallable | None = None, scrollbar: FilterOrBool = True, style: str = 'class:kernel-input', search_field: SearchToolbar | None = None, preview_search: FilterOrBool = False, prompt: AnyFormattedText = '', input_processors: list[Processor] | None = None, name: str = '', 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 = False, autosuggest_while_typing: FilterOrBool = True, validate_while_typing: FilterOrBool = False, scroll_offsets: ScrollOffsets | None = None, formatters: list[Formatter] | None = None, language: str | Callable[[], str] | None = None, diagnostics: Report | Callable[[], Report] | None = None, inspector: Inspector | None = None, show_diagnostics: FilterOrBool = True)
Bases:
TextArea
Kernel input text areas.
A customized text area for the cell input.
- property accept_handler: Optional[Callable[[Buffer], bool]]
The accept handler. Called when the user accepts the input.
- property current_diagnostic_message: StyleAndTextTuples
Format the currently selected diagnostic message.