Skip to main content

Crate cellix_input

Crate cellix_input 

Source
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
MouseEvent
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, the vim keymap 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
MouseKind
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.