Skip to content

chpf/clock-in

Repository files navigation

Clock In

Dead simple (as in more boilerplate that acutal code) obsidian plugin that provides three addidional commands

  • clock-in
  • clock-out
  • recalculate-hours

Clocking in and out adds the following syntax to the YAML-Frontmatter of the active document. Recalculating recalculates.

---
LOGBOOK:
  - CLOCK_IN: 2025-02-13T09:55:44.877Z
    CLOCK_OUT: 2025-02-13T12:33:46.307Z
    HOURS: 2.63
---

Query the Frontmatter with Dataview to build a timesheet for the entire vault.

TABLE WITHOUT ID
    entry.CLOCK_IN as Started,
    entry.HOURS as Hours
FLATTEN LOGBOOK as entry
WHERE entry.HOURS AND entry.CLOCK_IN

You can clock in and out more that once per file, adjust your dataview query if needed.

About

Simple Timesheets by emulating some of the features of org-mode clock-in/clock-out

Topics

Resources

License

Stars

Watchers

Forks