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", "calendar-title": "Calendar",
"recent-changes-title": "Recent Changes", "recent-changes-title": "Recent Changes",
"bookmarks-title": "Bookmarks", "bookmarks-title": "Bookmarks",
"command-palette": "Open Command Palette",
"zen-mode": "Zen Mode", "zen-mode": "Zen Mode",
"open-today-journal-note-title": "Open Today's Journal Note", "open-today-journal-note-title": "Open Today's Journal Note",
"quick-search-title": "Quick Search", "quick-search-title": "Quick Search",

View File

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

View File

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