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",
|
"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",
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
@ -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;
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user