Expand description
Key-event translation: crossterm [KeyEvent] → Intent, through the
preset keymap and the scope chain scopes::chain builds from focus.
Structs§
- Hint
- A status bar item: the intent a click on it applies, the hotkey and the label.
- KeyView
- The keys of one scope chain that do something now: innermost scope first; a chord an
inner scope binds hides the outer binding of it, and an intent that does nothing in
the focus of
appis left out. - Keys
- The preset keymap, the chords typed so far and the vim state.
Enums§
- VimState
- Where the vim preset is: typing or normal mode.
Constants§
- DEFAULT_
KEYMAP - The preset used when neither the command line nor the config names one.
Functions§
- handle_
key - Translate the key and apply it. Over SSH an Esc followed within 40 ms by a
key arrives as
M-key; where vim binds Esc, an unboundM-keyis both. - help_
lines - The lines of Help for the context
appis in now. - help_
topic - The innermost scope of the context
appis in: what a Help window is about. - here
- The keys of the chain the focused layer uses.
- hinted
- The intent, hotkey and label of each action the chain’s scopes list as hints:
globalfirst, a fixed place on the bar, then the inner scopes innermost first. The key is the innermost binding of the intent from the hinting scope outwards, if it does something now. - in_form
- The keys of
formas its focused field has them. - in_
modal - The keys of
modalwhen it is the topmost overlay. - in_rows
- The keys of a rows field, whether or not it has the focus.
- in_view
- The keys of the view scopes of the active tab, whatever has the focus.
- in_
view_ all - The keys of the view scopes of the active tab, those that do nothing now included.
- in_
window - The keys of the view scopes of window
id, whatever has the focus.