euporie.core.bars.command

Define the global command toolbar.

Functions

add_cmd(**kwargs)

Add a command to the centralized command system.

get_app()

Get the current active (running) Application.

get_cmd(name)

Get a command from the centralized command system by name.

has_focus(value)

Enable when this buffer has the focus.

load_registered_bindings(*names[, config])

Assign key-bindings to commands based on a dictionary.

lru_cache([maxsize, typed])

Least-recently-used cache decorator.

register_bindings(bindings)

Update the key-binding registry.

Classes

BeforeInput(text[, style])

Insert text before the input.

Buffer([completer, auto_suggest, history, ...])

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.

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

Control for visualizing the content of a Buffer.

CommandBar()

Command mode toolbar.

CommandCompleter()

Completer of commands.

Completer()

Base class for completer implementations.

Completion(text[, start_position, display, ...])

ConditionalContainer(content, filter)

Wrapper around any other container that can change the visibility.

Container()

Base class for user interface layout.

HighlightSelectionProcessor()

Processor that highlights the selection in the document.

InputMode(*values)

SimpleLexer([style])

Lexer that doesn't do any tokenizing and returns the whole input as one token.

Validator()

Abstract base class for an input validator.

Window(*args, **kwargs)

Container that holds a control.

class euporie.core.bars.command.CommandBar

Bases: object

Command mode toolbar.

A modal editor like toolbar to allow entry of commands.

class euporie.core.bars.command.CommandCompleter

Bases: Completer

Completer of commands.

get_completions(document: Document, complete_event: CompleteEvent) Iterable[Completion]

Complete registered commands.

async get_completions_async(document: Document, complete_event: CompleteEvent) AsyncGenerator[Completion, None]

Asynchronous generator for completions. (Probably, you won’t have to override this.)

Asynchronous generator of Completion objects.