feat: add Cmd-B sidebar toggle shortcut (#1775)

Co-authored-by: Dr. Lukas Metzger <lukas@mba.lan>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-11-06 20:48:20 -06:00
1 parent 9778b6e56a
commit b912a31e00
5 files changed
+61 -7

No files matched your search

+20
View File
@@ -84,6 +84,11 @@ const SHELL_ACTIONS: KeybindingActionDef[] = [
"newUi.sidebar.keybindings.actionReconnectSession",
1003,
),
shellAction(
"toggleSidebar",
"newUi.sidebar.keybindings.actionToggleSidebar",
1004,
),
];
export const SHELL_KEYBINDING_ACTION_IDS = SHELL_ACTIONS.map(
@@ -97,6 +102,21 @@ function install(): void {
for (const action of SHELL_ACTIONS) {
if (!actions.get(action.id)) actions.register(action);
}
if (!defaults.get("toggleSidebar")) {
defaults.register({
id: "toggleSidebar",
combo: {
key: "KeyB",
isCode: true,
ctrl: false,
alt: false,
shift: false,
meta: true,
},
descriptionKey: "newUi.sidebar.keybindings.actionToggleSidebar",
order: 1004,
});
}
}
install();