Expand description
Input events and the commands they map to. Editing modes are key maps over the same commands, so views never depend on which mode is active.
Structs§
- KeyEvent
- Mods
- Mouse
Event - Vim
- A built-in subset of Vim: motions, counts, operators with a motion or text object,
Visual and Insert, and the
:commands that save and close. Anything it doesn’t know is swallowed, never typed: an unknown key in Normal mode must not reach the file. With Neovim installed, thevimkeymap runs that instead.
Enums§
- Command
- Anything the user can ask for. Each entry is also a command-palette item unless it needs arguments.
- Direction
- A cursor movement, independent of the rope model.
- Event
- Format
- Markdown formatting, as the page’s toolbar offers it.
- Key
- Mouse
Kind - VimAction
- What a key does in Vim mode.
- VimMode
Functions§
- simple_
keymap - VS Code-style keys. Returns None for plain characters, which the view inserts.