client: add a launcher to open the command palette
Some checks failed
Checks / main (push) Has been cancelled

This commit is contained in:
Adorian Doran 2025-11-03 23:44:06 +02:00
parent 8c2354df71
commit 0b01890a11
3 changed files with 11 additions and 1 deletions

View File

@ -331,6 +331,7 @@
"calendar-title": "Calendar",
"recent-changes-title": "Recent Changes",
"bookmarks-title": "Bookmarks",
"command-palette": "Open Command Palette",
"zen-mode": "Zen Mode",
"open-today-journal-note-title": "Open Today's Journal Note",
"quick-search-title": "Quick Search",

View File

@ -52,12 +52,19 @@ export default function buildLaunchBarConfig() {
id: "_lbForwardInHistory",
...sharedLaunchers.forwardInHistory
},
{
id: "_commandPalette",
title: t("hidden-subtree.command-palette"),
type: "launcher",
command: "commandPalette",
icon: "bx bx-chevron-right-square"
},
{
id: "_lbBackendLog",
title: t("hidden-subtree.backend-log-title"),
type: "launcher",
targetNoteId: "_backendLog",
icon: "bx bx-terminal"
icon: "bx bx-detail"
},
{
id: "_zenMode",

View File

@ -7,6 +7,7 @@ enum Command {
showRecentChanges,
showOptions,
createAiChat,
commandPalette,
toggleZenMode
}
@ -43,6 +44,7 @@ export interface HiddenSubtreeItem {
| "calendar"
| "quickSearch"
| "aiChatLauncher"
| "commandPalette"
| "toggleZenMode";
command?: keyof typeof Command;
/**