feat!: keybars Pro's Focus names for phases and hooks #6

Merged
jwarykowski merged 1 commit from feat/keybars-focus into main 2026-10-18 01:10:06 +00:00
Owner

Moves herdr-pomodoro to keybars Pro's Focus vocabulary:

  • Phases are work, break, or "" between rounds. A long break is break with "long": true.
  • Hooks are focus.started (a work round starts, including after an automatic break), focus.break, focus.done (a break ended and the timer waits) and focus.stopped.
  • pomodoro status -json prints {"phase","remaining","length"} as keybars-pro focus status -json does, so one reader handles both.
  • The Neovim module and spec follow the new phases.

This is a breaking change made outright, since nothing uses the plugin yet.

Tested: shellcheck, stylua, luacheck, busted (2 specs), and a smoke run of start, status -json, skip into a break, skip to between rounds, toggle and stop, checking the hooks fired in order.

Moves herdr-pomodoro to keybars Pro's Focus vocabulary: - **Phases** are `work`, `break`, or `""` between rounds. A long break is `break` with `"long": true`. - **Hooks** are `focus.started` (a work round starts, including after an automatic break), `focus.break`, `focus.done` (a break ended and the timer waits) and `focus.stopped`. - **`pomodoro status -json`** prints `{"phase","remaining","length"}` as `keybars-pro focus status -json` does, so one reader handles both. - **The Neovim module and spec** follow the new phases. This is a breaking change made outright, since nothing uses the plugin yet. Tested: shellcheck, stylua, luacheck, busted (2 specs), and a smoke run of start, `status -json`, skip into a break, skip to between rounds, toggle and stop, checking the hooks fired in order.
feat!: keybars Pro's Focus names for phases and hooks
All checks were successful
CI / shellcheck (pull_request) Successful in 8s
CI / lint (pull_request) Successful in 46s
CI / test (nightly) (pull_request) Successful in 1m16s
CI / test (stable) (pull_request) Successful in 1m12s
e2e168b651
Phases are work, break, or empty between rounds, with long on every
fourth break, and hooks are focus.started, focus.break, focus.done and
focus.stopped, as keybars Pro's Focus timer names them. pomodoro status
-json prints the timer as keybars-pro focus status -json does, so one
reader handles both.
jwarykowski deleted branch feat/keybars-focus 2026-10-18 01:10:06 +00:00
Commenting is not possible because the repository is archived.
No description provided.