master-key.ignore
This command is used in a binding file to signal that the given keypress should do nothing. This is useful for key presses that would otherwise cause some other action to occur (e.g. type keys).
Example
Master key ensures that when in a command-related mode (e.g. normal
) key presses to letters do not cause keys to be typed.
toml
#- in "command" like modes (e.g. normal), typing keys without a command defined
#- below should have no effect
[[bind]]
defaults = "modes"
name = "ignore"
description = "this key does nothing"
#- all keys whose bindings are described by a single character
foreach.key = ['{{key: .}}', 'shift+{{key: .}}']
key = "{{key}}"
command = "master-key.ignore"
prefixes = "{{all_prefixes}}"
mode = ["normal", "selectedit"]
when = "editorTextFocus"
hideInDocs = true
hideInPalette = true
priority = -10