Skip to main content

Module single_line_input

Module single_line_input 

Source
Expand description

Reusable single-line text input.

Used by the editor find bar, dialogs (rename, move, quick-note), the sidebar / note-browser search boxes, and the settings workspace name field. The widget owns its value and char cursor; callers add titles, hints, validation visuals, and submit/cancel semantics on top.

handle_key returns InputOutcome so callers can branch on Submit / Cancel / textual mutation without re-matching the raw key.

Structs§

SingleLineInput

Enums§

InputOutcome
Outcome of SingleLineInput::handle_key — lets callers branch without re-parsing the key event.