{#if open && task && meta} act("taskToggle")} title={meta.label} type="button" > {task.sphere} {#if task.inArchive} {task.project} {:else} {task.project} {/if} {#if task.priority !== 2} {PRIORITY_LABEL[task.priority]} {/if} {task.path.slice(task.path.lastIndexOf("/") + 1)}:{task.line + 1} { const anchor = (event.target as HTMLElement).closest("a"); if (!anchor) return; event.preventDefault(); const href = anchor.getAttribute("href") ?? ""; if (anchor.classList.contains("internal-link")) { void view.app.workspace.openLinkText(href, task.path, event.metaKey || event.ctrlKey); } else if (href) { window.open(href, "_blank"); } }} onkeydown={() => {}} role="presentation" use:markdown={{ app: view.app, component: view.component, sourcePath: task.path, text: task.text, }} > {#if notes} {/if} {#if task.due} {@const tone = dueTone(task.due, store.today)} due {when(task.due)} {/if} {#if task.scheduled} scheduled {when(task.scheduled)} {/if} {#if task.start} from {short.format(fromKey(task.start))} {/if} {#if task.recurrence} {task.recurrence} {/if} {#if task.done} done {short.format(fromKey(task.done))} {/if} {#if task.created} added {short.format(fromKey(task.created))} {/if} {#if !task.due && !task.scheduled && !task.start && !task.recurrence && !task.done} No date {/if} {#if task.tags.length > 0} {task.tags.join(" ")} {/if} {#each rows as row (row.action)} act(row.action)} type="button" > {#each row.keys as key (key)} {key} {/each} {row.label} {/each} ␣ close { store.peeking = false; }} type="button" > close {/if}