Crate lineeditor

Source

Modules§

editor
event
input_filter
keybindings
style
styled_buffer
styled_editor_view

Structs§

DefaultAutoPair
Auto pair complete that depend on a map of pairs
DropDownListView
KeyModifiers
Represents key modifiers (shift, control, alt, etc.).
LineEditor
Line Editor Engine
Span
A span of source code, with positions
StringPrompt
Suggestion
Suggestion returned by the Completer

Enums§

Color
Represents a color.
KeyCode
Represents a key.
KeyEventKind
Represents a keyboard event kind.
LineEditorResult
A Result can return fromLineEditor::read_line()
SetCursorStyle
A command that sets the style of the cursor. It uses two types of escape codes, one to control blinking, and the other the shape.

Constants§

DEFAULT_PAIRS
List of common pairs

Traits§

AutoPair
The Auto pair trait. Implementers of this trait will take the current styled buffer and then modify it, which represents the contents of the original line
Completer
The Completer trait, Implementers of this trait will return a list of suggestions as styled buffers
Highlighter
The syntax highlighting trait. Implementers of this trait will take the current styled buffer and then modify it, which represents the contents of the original line
Hinter
The Hinter trait, Implementers of this trait will take the current styled buffer and then Return a new StyledBuffer for the hint if exists or None if not hint
ListView
Prompt
The Prompt trait, Implementers of this trait will return a prompt as styled buffer