feat(mobile): add open today's journal note (closes #1129).

This commit is contained in:
Elian Doran 2025-02-08 10:46:06 +02:00
parent f8f1e537db
commit a2995ef267
No known key found for this signature in database

View File

@ -9,6 +9,12 @@ export default function buildLaunchBarConfig() {
command: "createNoteIntoInbox", command: "createNoteIntoInbox",
icon: "bx bx-file-blank" icon: "bx bx-file-blank"
}, },
openToday: {
title: t("hidden-subtree.open-today-journal-note-title"),
type: "launcher",
builtinWidget: "todayInJournal",
icon: "bx bx-calendar-star"
},
backInHistory: { backInHistory: {
title: t("hidden-subtree.go-to-previous-note-title"), title: t("hidden-subtree.go-to-previous-note-title"),
type: "launcher", type: "launcher",
@ -61,7 +67,7 @@ export default function buildLaunchBarConfig() {
}, },
{ id: "_lbSpacer1", title: t("hidden-subtree.spacer-title"), type: "launcher", builtinWidget: "spacer", baseSize: "50", growthFactor: "0" }, { id: "_lbSpacer1", title: t("hidden-subtree.spacer-title"), type: "launcher", builtinWidget: "spacer", baseSize: "50", growthFactor: "0" },
{ id: "_lbBookmarks", title: t("hidden-subtree.bookmarks-title"), type: "launcher", builtinWidget: "bookmarks", icon: "bx bx-bookmark" }, { id: "_lbBookmarks", title: t("hidden-subtree.bookmarks-title"), type: "launcher", builtinWidget: "bookmarks", icon: "bx bx-bookmark" },
{ id: "_lbToday", title: t("hidden-subtree.open-today-journal-note-title"), type: "launcher", builtinWidget: "todayInJournal", icon: "bx bx-calendar-star" }, { id: "_lbToday", ...sharedLaunchers.openToday },
{ id: "_lbSpacer2", title: t("hidden-subtree.spacer-title"), type: "launcher", builtinWidget: "spacer", baseSize: "0", growthFactor: "1" }, { id: "_lbSpacer2", title: t("hidden-subtree.spacer-title"), type: "launcher", builtinWidget: "spacer", baseSize: "0", growthFactor: "1" },
{ id: "_lbQuickSearch", title: t("hidden-subtree.quick-search-title"), type: "launcher", builtinWidget: "quickSearch", icon: "bx bx-rectangle" }, { id: "_lbQuickSearch", title: t("hidden-subtree.quick-search-title"), type: "launcher", builtinWidget: "quickSearch", icon: "bx bx-rectangle" },
{ id: "_lbProtectedSession", title: t("hidden-subtree.protected-session-title"), type: "launcher", builtinWidget: "protectedSession", icon: "bx bx bx-shield-quarter" }, { id: "_lbProtectedSession", title: t("hidden-subtree.protected-session-title"), type: "launcher", builtinWidget: "protectedSession", icon: "bx bx bx-shield-quarter" },
@ -70,7 +76,8 @@ export default function buildLaunchBarConfig() {
] ]
const mobileAvailableLaunchers: HiddenSubtreeItem[] = [ const mobileAvailableLaunchers: HiddenSubtreeItem[] = [
{ id: "_lbMobileNewNote", ...sharedLaunchers.newNote } { id: "_lbMobileNewNote", ...sharedLaunchers.newNote },
{ id: "_lbMobileToday", ...sharedLaunchers.openToday }
]; ];
const mobileVisibleLaunchers: HiddenSubtreeItem[] = [ const mobileVisibleLaunchers: HiddenSubtreeItem[] = [