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));
+10
View File
@@ -30,6 +30,16 @@
font-weight: bold;
opacity: 0.8;
}
.org-todo-note {
font-size: 0.78em;
font-style: italic;
color: var(--text-muted);
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 40%; /* don't let a long filename blow out the row */
}
.org-todo-pill-x:hover {
opacity: 1;
}