dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Arbitrary keybind modes (not just normal,insert,visual,...) like vscode

Open bew opened this issue 4 years ago • 1 comments

Inspiration from vscode, with its arbitrary conditions for keybindings:

{
    "key": "ctrl+alt+f",
    "command": "editor.action.formatDocument",
    "when": "editorTextFocus && !editorReadonly && !inCompositeEditor"
}

bew avatar Jun 17 '21 00:06 bew

Kinda related:

  • Submodes proposal: https://github.com/neovim/neovim/issues/16313 which suggests the creation of namespaced keybindings, to be applied to buffer / window / global
  • Emacs major/minor modes: https://www.gnu.org/software/emacs/manual/html_node/emacs/Modes.html Which allow opt-in multiple minor modes (global/local) and one active major mode for the current file.

bew avatar Jan 04 '23 01:01 bew