mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 00:19:04 +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",
|
||||
"recent-changes-title": "Recent Changes",
|
||||
"bookmarks-title": "Bookmarks",
|
||||
"zen-mode": "Zen Mode",
|
||||
"open-today-journal-note-title": "Open Today's Journal Note",
|
||||
"quick-search-title": "Quick Search",
|
||||
"protected-session-title": "Protected Session",
|
||||
|
||||
@ -47,6 +47,13 @@ export default function buildLaunchBarConfig() {
|
||||
{ id: "_lbBackInHistory", ...sharedLaunchers.backInHistory },
|
||||
{ id: "_lbForwardInHistory", ...sharedLaunchers.forwardInHistory },
|
||||
{ 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[] = [
|
||||
|
||||
@ -6,7 +6,8 @@ enum Command {
|
||||
createNoteIntoInbox,
|
||||
showRecentChanges,
|
||||
showOptions,
|
||||
createAiChat
|
||||
createAiChat,
|
||||
toggleZenMode
|
||||
}
|
||||
|
||||
export interface HiddenSubtreeAttribute {
|
||||
@ -41,7 +42,8 @@ export interface HiddenSubtreeItem {
|
||||
| "protectedSession"
|
||||
| "calendar"
|
||||
| "quickSearch"
|
||||
| "aiChatLauncher";
|
||||
| "aiChatLauncher"
|
||||
| "toggleZenMode";
|
||||
command?: keyof typeof Command;
|
||||
/**
|
||||
* If set to true, then branches will be enforced to be in the correct place.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user