Skip to content

Build your personal knowledge base with Trilium Notes

feat(mobile/global_menu): add option to search notes

Elian Doranac4be3f8a883
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index c5417f55e9..32f86b3694 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -662,7 +662,8 @@
"show-cheatsheet": "Show Cheatsheet",
"toggle-zen-mode": "Zen Mode",
"new-version-available": "New Update Available",
- "download-update": "Get Version {{latestVersion}}"
+ "download-update": "Get Version {{latestVersion}}",
+ "search_notes": "Search notes"
},
"zen_mode": {
"button_exit": "Exit Zen Mode"
diff --git a/apps/client/src/widgets/buttons/global_menu.tsx b/apps/client/src/widgets/buttons/global_menu.tsx
index 0986c8ad29..9db0393692 100644
--- a/apps/client/src/widgets/buttons/global_menu.tsx
+++ b/apps/client/src/widgets/buttons/global_menu.tsx
@@ -45,6 +45,10 @@ export default function GlobalMenu({ isHorizontalLayout }: { isHorizontalLayout:
noDropdownListStyle
mobileBackdrop
>
+ {isMobile() && <>
+ <MenuItem command="searchNotes" icon="bx bx-search" text={t("global_menu.search_notes")} />
+ <FormDropdownDivider />
+ </>}
<MenuItem command="openNewWindow" icon="bx bx-window-open" text={t("global_menu.open_new_window")} />
<MenuItem command="showShareSubtree" icon="bx bx-share-alt" text={t("global_menu.show_shared_notes_subtree")} />
@@ -105,7 +109,7 @@ function BrowserOnlyOptions() {
function DevelopmentOptions({ dropStart }: { dropStart: boolean }) {
return <>
- <FormListHeader text="Development Options"></FormListHeader>
+ <FormListHeader text="Development Options" />
<FormDropdownSubmenu icon="bx bx-test-tube" title="Experimental features" dropStart={dropStart}>
{experimentalFeatures.map((feature) => (
<ExperimentalFeatureToggle key={feature.id} experimentalFeature={feature as ExperimentalFeature} />