euporie.core.widgets.search_bar

Define the global search toolbar and related search functions.

Functions

accept_search()

Accept the search input.

add_cmd(**kwargs)

Add a command to the centralized command system.

find()

Enter search mode.

find_next()

Find the next search match.

find_prev_next(direction)

Find the previous or next search match.

find_previous()

Find the previous search match.

get_app()

Get the current active (running) Application.

load_registered_bindings(*names[, config])

Assign key-bindings to commands based on a dictionary.

register_bindings(bindings)

Update the key-binding registry.

start_global_search([buffer_control, direction])

Start a search through all searchable buffer_controls in the layout.

stop_search()

Abort the search.

Classes

BufferControl([buffer, input_processors, ...])

Control for visualising the content of a Buffer.

InputMode(value[, names, module, qualname, ...])

PtkSearchToolbar

alias of prompt_toolkit.widgets.toolbars.SearchToolbar

SearchBar([search_buffer, vi_mode, ...])

Search mode.

SearchBufferControl([buffer, ...])

BufferControl which is used for searching another BufferControl.

SearchDirection(value[, names, module, ...])

SelectionState([original_cursor_position, type])

State of the current selection.

class euporie.core.widgets.search_bar.SearchBar(search_buffer: Buffer | None = None, vi_mode: bool = False, text_if_not_searching: AnyFormattedText = '', forward_search_prompt: AnyFormattedText = 'I-search: ', backward_search_prompt: AnyFormattedText = 'I-search backward: ', ignore_case: FilterOrBool = False)

Bases: prompt_toolkit.widgets.toolbars.SearchToolbar

Search mode.

A search toolbar with custom style and text.

Accept the search input.

euporie.core.widgets.search_bar.find() None

Enter search mode.

euporie.core.widgets.search_bar.find_next() None

Find the next search match.

euporie.core.widgets.search_bar.find_prev_next(direction: prompt_toolkit.search.SearchDirection) None

Find the previous or next search match.

euporie.core.widgets.search_bar.find_previous() None

Find the previous search match.

Start a search through all searchable buffer_controls in the layout.

Abort the search.