diff --git a/main.js b/main.js index 4fdbf35..69b7f05 100644 --- a/main.js +++ b/main.js @@ -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)); diff --git a/styles.css b/styles.css index f2bb380..6a80af6 100644 --- a/styles.css +++ b/styles.css @@ -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; }