Add open-note trash action (#177)

This commit is contained in:
Yuri Karamian
2026-08-03 10:45:59 +02:00
parent f4e05ed9c4
commit 1a880a4f96
3 changed files with 117 additions and 24 deletions
-6
View File
@@ -519,12 +519,6 @@
}
}
// Move the currently open note to the trash (keyboard shortcut from the editor).
export async function trashActiveNote() {
if ($viewMode === 'trash' || !$activeNotePath) return;
const note = $notes.find(n => n.path === $activeNotePath);
if (note) await handleDelete(note);
}
async function handleRestore(note: NoteEntry) {
contextMenu = null;