mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 08:29:00 +01:00
client: add a launcher for zen mode
This commit is contained in:
parent
fbb27b512e
commit
d650b801e6
@ -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",
|
||||||
|
"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",
|
||||||
"protected-session-title": "Protected Session",
|
"protected-session-title": "Protected Session",
|
||||||
|
|||||||
@ -47,6 +47,13 @@ export default function buildLaunchBarConfig() {
|
|||||||
{ id: "_lbBackInHistory", ...sharedLaunchers.backInHistory },
|
{ id: "_lbBackInHistory", ...sharedLaunchers.backInHistory },
|
||||||
{ id: "_lbForwardInHistory", ...sharedLaunchers.forwardInHistory },
|
{ id: "_lbForwardInHistory", ...sharedLaunchers.forwardInHistory },
|
||||||
{ id: "_lbBackendLog", title: t("hidden-subtree.backend-log-title"), type: "launcher", targetNoteId: "_backendLog", icon: "bx bx-terminal" },
|
{ id: "_lbBackendLog", title: t("hidden-subtree.backend-log-title"), type: "launcher", targetNoteId: "_backendLog", icon: "bx bx-terminal" },
|
||||||
|
{
|
||||||
|
id: "_zenMode",
|
||||||
|
title: t("hidden-subtree.zen-mode"),
|
||||||
|
type: "launcher",
|
||||||
|
command: "toggleZenMode",
|
||||||
|
icon: "bx bxs-yin-yang"
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
const desktopVisibleLaunchers: HiddenSubtreeItem[] = [
|
const desktopVisibleLaunchers: HiddenSubtreeItem[] = [
|
||||||
|
|||||||
@ -6,7 +6,8 @@ enum Command {
|
|||||||
createNoteIntoInbox,
|
createNoteIntoInbox,
|
||||||
showRecentChanges,
|
showRecentChanges,
|
||||||
showOptions,
|
showOptions,
|
||||||
createAiChat
|
createAiChat,
|
||||||
|
toggleZenMode
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface HiddenSubtreeAttribute {
|
export interface HiddenSubtreeAttribute {
|
||||||
@ -41,7 +42,8 @@ export interface HiddenSubtreeItem {
|
|||||||
| "protectedSession"
|
| "protectedSession"
|
||||||
| "calendar"
|
| "calendar"
|
||||||
| "quickSearch"
|
| "quickSearch"
|
||||||
| "aiChatLauncher";
|
| "aiChatLauncher"
|
||||||
|
| "toggleZenMode";
|
||||||
command?: keyof typeof Command;
|
command?: keyof typeof Command;
|
||||||
/**
|
/**
|
||||||
* If set to true, then branches will be enforced to be in the correct place.
|
* If set to true, then branches will be enforced to be in the correct place.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user