Skip to main content

Module keymap

Module keymap 

Source
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 app is 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 unbound M-key is both.
help_lines
The lines of Help for the context app is in now.
help_topic
The innermost scope of the context app is 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: global first, 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 form as its focused field has them.
in_modal
The keys of modal when 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.