Skip to content

fix(tui): third audit — search excerpts, narrow widths, NO_COLOR, grid cursor - #83

Merged
m1ngsama merged 8 commits into
mainfrom
fix/audit-3
Sep 26, 2026
Merged

m1ngsama merged 8 commits into
mainfrom
fix/audit-3

Conversation

@m1ngsama

Copy link
Copy Markdown
Member

A third audit found search excerpts that never showed the query, a few renderers overrunning the frame at ≤60 columns, and NO_COLOR ignored.

  • Docs search excerpts are windowed around the first occurrence of the query to fit the column, with "…" on either side, so every result shows why it matched.
  • The heatmap, term-density chart, next-class/next-event banners and weekday strip use the same body width as everything else; a test asserts nothing passes the rule at 40 and 60 columns in zh and en.
  • NO_COLOR (any non-empty value) turns colour off in auto mode; an explicit "on" still forces it.
  • ⏎ on an empty cell in the full week grid stays in the grid; the grid cursor no longer truncates the course name.
  • Separators follow the icon mode ("-" in ASCII); events search results read "“meeting”的搜索结果 · 9 场"; zh running text uses full-width colons; placeholders end in "..."; input footers read "⏎ confirm · Esc back · Ctrl+C quit"; archived-year counts are right-aligned; the browser fallback is one sentence per language.

@m1ngsama
m1ngsama merged commit 9efaf00 into main Sep 26, 2026
4 checks passed
@m1ngsama
m1ngsama deleted the fix/audit-3 branch September 26, 2026 17:33
@m1ngsama m1ngsama mentioned this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant