show note name if tags dont exist for a task

This commit is contained in:
2026-06-16 21:51:59 -07:00
parent 94c926d39b
commit 84e8f3fcdf
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -321,6 +321,12 @@ class OrgTodoListView extends ItemView {
for (const tag of t.tags) {
row.createSpan({ text: "#" + tag, cls: "org-todo-rowtag" });
}
if (t.tags.length === 0) {
const note = row.createSpan({ text: t.file.basename, cls: "org-todo-note" });
note.addEventListener("click", () => this.openTask(t));
}
if (t.dueDate) row.createSpan({ text: "📅 " + t.dueDate, cls: "org-todo-date" });
label.addEventListener("click", () => this.openTask(t));