{#if !open}
{/if} {#if open}
빠른 메모
{ const ta = document.querySelector('[data-quick-memo-input]'); if (!ta) return; const s = ta.selectionStart; const pre = content.slice(0, s); const nl = s > 0 && pre[pre.length - 1] !== '\n' ? '\n' : ''; content = pre + nl + '- [ ] ' + content.slice(ta.selectionEnd); requestAnimationFrame(() => { ta.focus(); ta.setSelectionRange(s + nl.length + 6, s + nl.length + 6); }); }} class="p-1.5 rounded text-dim hover:text-text hover:bg-surface-hover transition-colors" title="체크리스트" >
{ const ta = document.querySelector('[data-quick-memo-input]'); if (!ta) return; const s = ta.selectionStart; const ins = ` @${todayIso()}`; content = content.slice(0, s) + ins + content.slice(ta.selectionEnd); requestAnimationFrame(() => { ta.focus(); ta.setSelectionRange(s + ins.length, s + ins.length); }); }} class="p-1.5 rounded text-dim hover:text-text hover:bg-surface-hover transition-colors" title="마감일" >
#태그 지원
{ close(); goto('/memos'); }}> 목록
저장
{/if}