From 59f2a35962de6e1c12f73621bb68227d1bcfd985 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 18 Jan 2026 22:47:57 +0000 Subject: [PATCH] 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 --- keybindings.json | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/keybindings.json b/keybindings.json index bf70567..69fab03 100644 --- a/keybindings.json +++ b/keybindings.json @@ -77,10 +77,50 @@ "key": "cmd+0", "command": "workbench.action.zoomReset" }, - { // Toggle sidebar visibility. + { // Toggle sidebar. "key": "ctrl+s", "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