Reveal selected tasks in editor

This commit is contained in:
Yuri Karamian
2026-07-20 13:09:35 +02:00
parent 4aa0b200b9
commit 9b51aef073
3 changed files with 179 additions and 12 deletions
+2 -2
View File
@@ -252,11 +252,11 @@
// Tasks view: the editor pane shows a placeholder until a task is opened from the list.
let taskNoteOpened = $state(false);
function handleNoteSelected(path: string, content: string) {
function handleNoteSelected(path: string, content: string, task?: TaskItem) {
// Selecting a real vault note exits viewer mode
$viewerNote = null;
taskNoteOpened = true;
editor?.loadNote(path, content);
editor?.loadNote(path, content, task);
if (isMobile) $mobileView = 'editor';
}