mirror of
https://github.com/jimeh/.vscode.d.git
synced 2026-02-19 11:26:39 +00:00
chore(keybindings): remap cmd+b to toggle auxiliary bar
Swaps cmd+b and alt+cmd+b behavior so cmd+b toggles the secondary sidebar instead of the primary. Disables conflicting cmd+b bindings from mdx extension and emacs-mcx. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -77,10 +77,50 @@
|
|||||||
"key": "cmd+0",
|
"key": "cmd+0",
|
||||||
"command": "workbench.action.zoomReset"
|
"command": "workbench.action.zoomReset"
|
||||||
},
|
},
|
||||||
{ // Toggle sidebar visibility.
|
{ // Toggle sidebar.
|
||||||
"key": "ctrl+s",
|
"key": "ctrl+s",
|
||||||
"command": "workbench.action.toggleSidebarVisibility"
|
"command": "workbench.action.toggleSidebarVisibility"
|
||||||
},
|
},
|
||||||
|
{ // Toggle secondary (auxiliary) bar.
|
||||||
|
"key": "cmd+b",
|
||||||
|
"command": "workbench.action.toggleAuxiliaryBar",
|
||||||
|
"when": "!isAuxiliaryWindowFocusedContext"
|
||||||
|
},
|
||||||
|
{ // Disable default toggle sidebar visibility keybinding.
|
||||||
|
"key": "cmd+b",
|
||||||
|
"command": "-workbench.action.toggleSidebarVisibility",
|
||||||
|
"when": "!isAuxiliaryWindowFocusedContext"
|
||||||
|
},
|
||||||
|
{ // Disable default toggle secondary (auxiliary) bar keybinding.
|
||||||
|
"key": "alt+cmd+b",
|
||||||
|
"command": "-workbench.action.toggleAuxiliaryBar",
|
||||||
|
"when": "!isAuxiliaryWindowFocusedContext"
|
||||||
|
},
|
||||||
|
{ // Disable cmd+b keybinding for mdx.toggleStrong.
|
||||||
|
"key": "cmd+b",
|
||||||
|
"command": "-mdx.toggleStrong",
|
||||||
|
"when": "editorTextFocus && !editorReadonly && editorLangId == 'mdx'"
|
||||||
|
},
|
||||||
|
{ // Disable cmd+b keybinding for emacs-mcx.isearchExit.
|
||||||
|
"key": "cmd+b",
|
||||||
|
"command": "-emacs-mcx.isearchExit",
|
||||||
|
"when": "config.emacs-mcx.useMetaPrefixMacCmd && editorFocus && findWidgetVisible && !config.emacs-mcx.cursorMoveOnFindWidget && !isComposing && !replaceInputFocussed"
|
||||||
|
},
|
||||||
|
{ // Disable cmd+b keybinding for emacs-mcx.backwardWord.
|
||||||
|
"key": "cmd+b",
|
||||||
|
"command": "-emacs-mcx.backwardWord",
|
||||||
|
"when": "config.emacs-mcx.useMetaPrefixMacCmd && editorTextFocus"
|
||||||
|
},
|
||||||
|
{ // Disable cmd+b keybinding for workbench.action.terminal.sendSequence.
|
||||||
|
"key": "cmd+b",
|
||||||
|
"command": "-workbench.action.terminal.sendSequence",
|
||||||
|
"when": "config.emacs-mcx.useMetaPrefixMacCmd && terminalFocus && terminalShellType != 'pwsh'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "cmd+b",
|
||||||
|
"command": "-workbench.action.terminal.sendSequence",
|
||||||
|
"when": "config.emacs-mcx.useMetaPrefixMacCmd && terminalFocus && terminalShellType == 'pwsh'"
|
||||||
|
},
|
||||||
//
|
//
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
// MARK: Window Tabs
|
// MARK: Window Tabs
|
||||||
|
|||||||
Reference in New Issue
Block a user