8000 GitHub - tlehman/dotbar at v0.1.0 · GitHub
[go: up one dir, main page]

Skip to content
tlehmanPublic

About

Braille-dot progress bar for statuslines and terminals

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

dotbar

A braille-dot progress bar for statuslines and terminals.

dotbar demo

dotbar 76            ⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣀⣀⣀ 76%   (13 cells, 1% per dot)
dotbar --dense 76    ⣿⡿⣀ 76%                (3 cells, 5% per dot)
dotbar demo          animate 0 -> 100% over 5s
dotbar demo-slow     animate 0 -> 100% at 1%/s

With no percent argument it reads Claude Code statusline JSON on stdin and renders 100 - .context_window.remaining_percentage. No such field means no output and exit 0, so a statusline segment with no data vanishes rather than printing an error.

Cells ramp green to red left to right. NO_COLOR=1 drops every escape sequence, for consumers that render the output as literal text.

Any other first argument is dispatched git-style to dotbar-<subcommand>, preferring a sibling of the dotbar binary over $PATH.

Develop

devenv shell (trust once with devenv allow), then devenv test for the full contract: toolchain present, cargo clippy -D warnings, cargo test.

Panic-capable constructs are denied in production code (Cargo.toml [lints.clippy]) and allowed in tests (clippy.toml).

License

MIT OR Apache-2.0.

About

Braille-dot progress bar for statuslines and terminals

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0