Skip to content

Commit

Permalink
Fix keybindings on tab and workbench.action.quickTextSearch (#1916)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx authored May 20, 2024
1 parent f3549a4 commit b10e944
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions keybindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@
// VSCode's quick search is like Emacs' Occur mode. Quick search is available since VSCode 1.89 (https://code.visualstudio.com/updates/v1_89#_quick-search).
{
"key": "meta+s o",
"command": "workbench.action.quickTextSearch",
"when": "editorFocus"
"command": "workbench.action.quickTextSearch"
},
// addSelectionToNext/PreviousFindMatch
{
Expand Down Expand Up @@ -984,9 +983,11 @@
"command": "workbench.action.togglePanel",
"when": "!terminalFocus"
},
// Assign `ctrl+i` to `tab` with the same condition as the VSCode default keybinding on `tab`.
{
"key": "ctrl+i",
"command": "tab"
"command": "tab",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
},
{
"keys": ["ctrl+i", "tab"],
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3062,13 +3062,13 @@
{
"key": "alt+s o",
"command": "workbench.action.quickTextSearch",
"when": "editorFocus && !config.emacs-mcx.useMetaPrefixMacCmd"
"when": "!config.emacs-mcx.useMetaPrefixMacCmd"
},
{
"key": "alt+s o",
"mac": "cmd+s o",
"command": "workbench.action.quickTextSearch",
"when": "editorFocus && config.emacs-mcx.useMetaPrefixMacCmd"
"when": "config.emacs-mcx.useMetaPrefixMacCmd"
},
{
"key": "ctrl+alt+n",
Expand Down Expand Up @@ -5688,7 +5688,8 @@
},
{
"key": "ctrl+i",
"command": "tab"
"command": "tab",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
},
{
"key": "ctrl+i",
Expand Down

0 comments on commit b10e944

Please sign in to comment.