Skip to content

feat(tui): the search that was always there, now on screen - #5

Merged
klNuno merged 1 commit into
mainfrom
feat/model-search
Aug 9, 2026
Merged

klNuno merged 1 commit into
mainfrom
feat/model-search

Conversation

@klNuno

@klNuno klNuno commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Draws the model screen's filter as a search box, on the line between the title and the list that is blank on that screen alone. The screen has filtered on whatever was typed into it since the list existed and nothing on screen said so, so the letters went somewhere invisible and the list simply got shorter.

The box is drawn before anything is typed, and carries the match count once something is: a filter hiding four of five models is the one case where the list on screen is not the list the provider serves. The caret is a reversed space rather than a bar glyph, which every terminal draws the same way. The help line drops type to filter and says what esc does instead.

Based on #4 and stacked on it, so this branch carries that commit too. Retarget to main once #4 lands.

cargo test passes, two of them on the new render.

@klNuno
klNuno force-pushed the feat/model-search branch from 22124af to ee83e0a Compare August 7, 2026 19:15
The model screen has filtered on whatever was typed into it since the
list existed, and nothing on screen said so: the letters went somewhere
invisible and the list simply got shorter. The line between the title
and the list was blank on that screen alone, so the box goes there.

It carries the caret before anything is typed, because a search nobody
can see is a search nobody uses, and the match count once something is:
a filter that hides four of five models is the one case where the list
on screen is not the list the provider serves.

The caret is a reversed space rather than a bar glyph, which every
terminal draws the same way. The help line no longer needs to say `type
to filter` and says what esc does instead.
@klNuno
klNuno force-pushed the feat/model-search branch from ee83e0a to f921cba Compare August 9, 2026 13:11
@klNuno
klNuno changed the base branch from fix/prompt-name to main August 9, 2026 13:11
@klNuno
klNuno merged commit 53c7000 into main Aug 9, 2026
5 checks passed
@klNuno
klNuno deleted the feat/model-search branch August 9, 2026 13:15
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