Repository navigation
otto-hud: the band in text on the terminal - #1
Merged
Merged
Conversation
The terminal had nothing; it now gets the same line in text, without Otto or tooltips: a glyph per forecast in its tint, the prompts' bars in eighths of a cell, and the limits' gauges in full colored cells, eighth-precise, sharing the band's width and drawn again when the terminal is resized.
… right end no longer cuts them
…e band's right end no longer cuts them" This reverts commit b015e49.
… Box's left edge, layout props dropped)
…the bar above and below
…used, the time mark and the pace
… legends one box, so the texts line up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The terminal showed nothing; it now gets the same line as the desktop, in text, without Otto or tooltips (a one-row band would cut a card to its first line).
growis a function of its bar's cells there, anddrawLineshares the band's spare cells among the gauges; the band is drawn again at each width, so they follow the terminal's.Tests: the terminal test checks the text line, no Svg or cards, the partial cell's background, and that the line fills the given width, 16 more columns going to the gauges.
bash scripts/check.shpasses (24 tests). Docs: README, plugin.json description, NOTICE, CLAUDE.md.Docs: CLAUDE.md now says how the desktop places hover cards (learned while trying to anchor the gauges' tooltips right, which a mod cannot do; that attempt is reverted).
Also, on the desktop: where the time stands, the gauges have a 2 px mark in Otto's blue (
OTTO_COLOR, exported by otto.mjs) that goes 3 px past the bar above and below, instead of a see-through notch. A test checks the mark and the drawing's height.And the gauges' tooltips have legends, small drawings in one box so the texts line up: a square of the gauge's tone before the share used, the gauge's own blue time mark before the time elapsed, a square of the faded tone before the pace. (The desktop drops an Svg with an empty alt, so each has its shape's glyph; a test checks no Svg has an empty alt.)
And the forecast and its percent now follow the context after each response, as the status line does:
session.measurebrings the figures (no call, no token), laid over the last reading aslive; not a reading, so the prompts' bars still move only at a turn's end. A test raises a measure mid-turn.