euporie.core.bars.search
Define the global search toolbar and related search functions.
Functions
Accept the search input. |
|
|
Add a command to the centralized command system. |
|
Enter search mode. |
Find the next search match. |
|
|
Find the previous or next search match. |
Find the previous search match. |
|
Find the current search buffer and buffer control. |
|
Find list of searchable controls and the index of the next control. |
|
|
Get the current active (running) Application. |
|
Assign key-bindings to commands based on a dictionary. |
|
Update the key-binding registry. |
|
Start a search through all searchable buffer_controls in the layout. |
Abort the search. |
|
|
Convert the given value (which can be formatted text) into a list of text fragments. |
Classes
|
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 |
|
Turn any callable into a Filter. |
|
This is a immutable class around the text and cursor position, and contains methods for querying this data, e.g. to give the text before the cursor. |
|
|
alias of |
|
|
Search mode. |
|
|
|
|
|
State of the current selection. |
- class euporie.core.bars.search.SearchBar(search_buffer: Buffer | None = None, vi_mode: bool = False, text_if_not_searching: AnyFormattedText = '', forward_search_prompt: AnyFormattedText = ' Find: ', backward_search_prompt: AnyFormattedText = ' Find (up): ', ignore_case: FilterOrBool = False)
Bases:
SearchToolbar
Search mode.
A search toolbar with custom style and text.
- euporie.core.bars.search.find_prev_next(direction: SearchDirection) None
Find the previous or next search match.
- euporie.core.bars.search.find_search_control() tuple[SearchBufferControl | None, BufferControl | None]
Find the current search buffer and buffer control.
- euporie.core.bars.search.find_searchable_controls(search_buffer_control: SearchBufferControl, current_control: BufferControl | None) list[BufferControl]
Find list of searchable controls and the index of the next control.
- euporie.core.bars.search.start_global_search(buffer_control: BufferControl | None = None, direction: SearchDirection = SearchDirection.FORWARD) None
Start a search through all searchable buffer_controls in the layout.