MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / goToToday

Function goToToday

packages/app-core/src/components/TasksCalendar.tsx:353–356  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

351 }
352
353 const goToToday = (): void => {
354 setMonthAnchor(toIsoDateLocal(firstOfMonth(today)))
355 setSelectedDate(todayIso)
356 }
357
358 // Local key handler. Registers in capture phase + uses
359 // stopImmediatePropagation so it beats VimNav's `gg`/`G`/`hjkl`

Callers 1

handlerFunction · 0.85

Calls 2

toIsoDateLocalFunction · 0.90
firstOfMonthFunction · 0.85

Tested by

no test coverage detected