From 3b15d315ec4836221f40d942148ed53e7659d089 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Tue, 28 Sep 2021 10:10:58 +0200 Subject: [PATCH] db search in main menu --- app/src/electron.js | 1 + packages/web/src/commands/CommandPalette.svelte | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/electron.js b/app/src/electron.js index ae302b1b..1a194b9c 100644 --- a/app/src/electron.js +++ b/app/src/electron.js @@ -50,6 +50,7 @@ function buildMenu() { commandItem('file.open'), commandItem('group.save'), commandItem('group.saveAs'), + commandItem('database.search'), { type: 'separator' }, commandItem('tabs.closeTab'), commandItem('file.exit'), diff --git a/packages/web/src/commands/CommandPalette.svelte b/packages/web/src/commands/CommandPalette.svelte index fa44867f..87e3e417 100644 --- a/packages/web/src/commands/CommandPalette.svelte +++ b/packages/web/src/commands/CommandPalette.svelte @@ -5,7 +5,7 @@ id: 'commandPalette.show', category: 'Command palette', name: 'Show', - toolbarName: 'Menu', + toolbarName: 'Menu+Search', toolbarOrder: 0, keyText: 'F1', toolbar: true, @@ -18,6 +18,7 @@ registerCommand({ id: 'database.search', category: 'Database', + toolbarName: 'Database search', name: 'Search', keyText: electron ? 'Ctrl+P' : 'F3', onClick: () => visibleCommandPalette.set('database'),