Add settings to hide unused sidebar items (#153)

This commit is contained in:
Yuri Karamian
2026-06-22 12:52:07 +02:00
parent 209585a0b4
commit 3d28665e1e
7 changed files with 138 additions and 3 deletions
+11 -1
View File
@@ -1,5 +1,5 @@
<script lang="ts">
import { showCommandPalette, showSearch, theme, sourceMode } from '$lib/stores/app';
import { showCommandPalette, showSearch, theme, sourceMode, viewMode, activeNotebook, activeTag } from '$lib/stores/app';
import { setTheme, reindex } from '$lib/api';
import { darkThemes } from '$lib/platform';
@@ -26,6 +26,16 @@
$showSearch = true;
}
},
{
id: 'open-trash',
label: 'Open Trash (restore deleted notes)',
action: () => {
$viewMode = 'trash';
$activeNotebook = null;
$activeTag = null;
$showCommandPalette = false;
}
},
{
id: 'theme-light',
label: 'Switch to Light Theme',