Skip to content

0.4.0

Choose a tag to compare

@devnix devnix released this 01 Nov 17:36
· 2 commits to main since this release
f1db150

Upgrade notes

  • The default format shows the git branch after {cwd}. A format that you set in BURNBAR_FORMAT does not change: add {branch} to get it.
  • {cwd} shortens $HOME to ~, also in your own BURNBAR_FORMAT.
  • BURNBAR_WRAP_SEP defaults to one space (was two). Set BURNBAR_WRAP_SEP=' ' to keep the old spacing.
  • BURNBAR_SPARK_WIDTH=0 now hides the sparkline (it fell back to 8). {delta} keeps working. Set 8 to keep the old result.

Added

  • {branch}: the current git branch, or the short SHA on a detached HEAD. It works in worktrees and submodules, and it is empty outside a repo and in a reftable repo. The default format moves it to the next line when it does not fit (#12).
  • Every bar can be hidden: a width of 0 removes the bar and keeps the rest of the tag, for example BURNBAR_5H_WIDTH=0 gives 5h: 47% ↺18:30. New variables: BURNBAR_MONTHLY_WIDTH and BURNBAR_DAILY_WIDTH (#13).

Changed

  • An empty tag takes the spaces before it: {ctx} {bar} {pct} without a bar gives ctx:94.2k 47% (#13).
  • A {sep} or {wrap} with nothing after it on its line renders nothing, so an empty group leaves no trailing spaces or blank line (#12).

Fixed

  • A non-numeric bar width falls back to the default. The bar used to disappear (#13).

Full Changelog: 0.3.0...0.4.0