Skip to main content

Module app

Module app 

Source
Expand description

I/O-free interaction coordinator. App owns the tree-list state, effective keymap, expansion/focus behavior, modal jump picker, keybinding-panel state, and the execution of configured AppCommands.

Key handling mutates application state or returns an Effect for the executable to perform; this module neither draws nor touches the terminal, filesystem, stdout, or subprocesses. Modal state machines live in their own modules and are routed from here.

Structs§

App

Enums§

Effect
What the event loop must do after a key is handled.
Mode
The app’s input mode. Normal drives the tree via the keymap; other modes take over key handling and rendering until they close. Adding a mode is a new variant plus one dispatch arm in handle_key and one in ui::draw.