Skip to content

Commit

Permalink
feat(bindings)!: enable bindings through configuration (#1558)
Browse files Browse the repository at this point in the history
* feat(bindings): enable bindings through configuration

* perf: Add VSCodeContext for perf improvement

* chore: typo

* fix: replace editorIdBlacklist with editorLangIdExclusions

* chore: fix lint

* docs: update readme

* docs: delete keybinding list

* chore(cmdline): Use the same Ctrl keys as before

* fix: add parentheses for `or`

* chore: tweak when expressions for normal

* docs: tweak `<C-r>` in cmdline

* refactor: remove and/or

* docs: editorLangIdExclusions

* fix: Add neovim.init to all keybindings for vscode-neovim commands

* chore: old defaults

* fix(cmdline): delete extra space

* chore: change the scripts filename ...
  • Loading branch information
xiyaowong committed Oct 23, 2023
1 parent 5e5d11f commit 222a131
Show file tree
Hide file tree
Showing 15 changed files with 936 additions and 1,038 deletions.
60 changes: 15 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -658,65 +658,35 @@ To use VSCode command 'Increase/decrease current view size' instead of separate

### Insert mode special keys

Enabled by `useCtrlKeysForInsertMode` (default true).
Enabled by `ctrlKeysForInsertMode`

Refer to VIM's manual for their use.
Default: `["a", "d", "h", "j", "o", "r", "t", "u", "w"]`

- <kbd>C-c</kbd>
- <kbd>C-o</kbd>
- <kbd>C-u</kbd>
- <kbd>C-w</kbd>
- <kbd>C-h</kbd>
- <kbd>C-t</kbd>
- <kbd>C-d</kbd>
- <kbd>C-j</kbd>
- <kbd>C-a</kbd>
- <kbd>C-r</kbd>
Refer to VIM's manual for their use.

### Normal mode control keys

Enabled by `useCtrlKeysForNormalMode` (default true).
Enabled by `ctrlKeysForNormalMode`

Refer to VIM's manual for their use.
Default: `["a", "b", "d", "e", "f", "h", "i", "j", "k", "l", "o", "r", "t", "u", "v", "w", "x", "y", "z", "/", "]"]`

- <kbd>C-a</kbd>
- <kbd>C-b</kbd>
- <kbd>C-c</kbd>
- <kbd>C-d</kbd>
- <kbd>C-e</kbd>
- <kbd>C-f</kbd>
- <kbd>C-i</kbd>
- <kbd>C-o</kbd>
- <kbd>C-r</kbd>
- <kbd>C-u</kbd>
- <kbd>C-v</kbd>
- <kbd>C-w</kbd>
- <kbd>C-x</kbd>
- <kbd>C-y</kbd>
- <kbd>C-z</kbd>
- <kbd>C-]</kbd>
- <kbd>C-j</kbd>
- <kbd>C-k</kbd>
- <kbd>C-l</kbd>
- <kbd>C-h</kbd>
- <kbd>C-/</kbd>
Refer to VIM's manual for their use.

### Cmdline special keys

Always enabled.

- Tab
- Ctrl keys: `<C-h>` `<C-w>` `<C-u>` `<C-n>` `<C-p>` `<C-l>` `<C-g>` `<C-t>`
- All `<C-r>` prefixed keys

Refer to VIM's manual for their use.

- <kbd>C-h</kbd>
- <kbd>C-w</kbd>
- <kbd>C-u</kbd>
- <kbd>C-r</kbd> (including <kbd>C-r</kbd><kbd>C-w</kbd> and others)
- <kbd>C-n</kbd>
- <kbd>C-p</kbd>
- <kbd>C-l</kbd>
- <kbd>C-g</kbd>
- <kbd>C-t</kbd>
- <kbd>Tab</kbd>
### Disable keybindings

To disable keybindings defined by this extension in certain filetypes, you can use the `editorLangIdExclusions`
configuration. Please note that this will not affect all keybindings. If you find that this option is not working, you
can manually modify the keybindings in VSCode.

## 🎨 Highlights

Expand Down

0 comments on commit 222a131

Please sign in to comment.