Skip to main content

Module jump

Module jump 

Source
Expand description

Pure state machine for the / jump picker: a fuzzy finder over every node in the current tree.

Pressing / opens a Jump over the current tree. Typing filters a flat, score-ranked list of candidate paths; accepting one asks the app to move focus to that node (expanding the containers along the way). The picker owns no I/O and no rendering — it is a pure state machine, so it is unit-tested exactly like the rest of app.rs. Where it is drawn is the renderer’s concern (see ui::render_jump and ADR-0002); the picker only exposes state. Query editing is delegated to tui_input; fuzzy ranking belongs here.

Structs§

Jump
The jump picker’s state: the query line (an editable tui_input::Input), the candidate set (built once on open), the ranked results, and view state (selection + scroll).
Match
One ranked result: the matched node, its score, and the character indices in its path that matched (sorted + deduplicated, for highlighting).

Enums§

JumpOutcome
What the caller must do after handing a key to the picker.