mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 16:39:02 +01:00
client: add a launcher to open the command palette
Some checks failed
Checks / main (push) Has been cancelled
Some checks failed
Checks / main (push) Has been cancelled
This commit is contained in:
parent
8c2354df71
commit
0b01890a11
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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;
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user