Skip to main content

Module prompt_line_mode

Module prompt_line_mode 

Source
Expand description

prompt-line-mode: the generic one-line minibuffer text prompt backing Effect::OpenPrompt.

Structurally mirrors crate::command_line_mode::CommandLineMode / crate::search_line_mode::SearchLineMode (buffer-backed, Insert-editable, focus-swapped via Editor::focus_editing_buffer) but is generic rather than tied to one purpose: the caller supplies the prompt label, initial text, and which action:* handler fires on submit (Effect::OpenPrompt’s fields), so this mode’s own keymap only needs submit/cancel — no history, no completion, no purpose-specific logic. See Editor::open_prompt_line / do_prompt_line_submit.

Structs§

PromptLineMode

Constants§

PROMPT_LINE_BUFFER_NAME_DEFAULT
Default synthetic name used when Effect::OpenPrompt’s buffer_name is None.
PROMPT_LINE_CANCEL
PROMPT_LINE_SUBMIT