(3b16540) Open a search with / in the tui, and bump to 0.13.6
Finding a ticket meant scrolling four columns and reading, which is what the id and the title are for. The real work was the input mode: every key in the dispatch was a single-shot action, and a query needs one that swallows the keys bound to them. That is Board::search_key, offered every key ahead of the action arms and reporting what it took. With no prompt open it takes nothing, so every other state's dispatch is unchanged. On Board for the reason dismiss is: the arm is not reachable from a test. ctrl-c is the one key the prompt declines, since a terminal application always honours it. Every other control combination is swallowed and does nothing: it must not type its letter, and it must not fall through either, because the action arms match on the code alone and ctrl-d would reach the arm bound to d. first_match runs over every card in the visible columns, in reading order, not the rows on screen: a query that answered differently on a tall terminal and a short one is not a search, and the jump scrolls the match into view. A hidden done column stays out, or the highlight would land on a ticket that is not on the board. Id and title only, both lowercased. The jump goes through select_at, extracted as the tail select_card already used, so follow_selection scrolls the match's own column and refresh_detail keeps an open overlay on it. Nothing calculates either a second way. A hit closes the prompt; a miss keeps it open, marked in brightred beside the query it is about, with the selection untouched, so the query can be corrected in place rather than retyped from /. The mark clears on the next edit. An empty query matches nothing rather than everything. The prompt takes the whole footer row, since the key list it replaces describes nothing that works while every key goes into the buffer. The real terminal cursor sits after the query: ratatui shows it only for a frame that asked, so it is also what says "you are typing" on an empty query. Both closed footers now name / search. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
4502de7ee3
commit
37dbd722e0
Generated
+1
-1
@@ -1494,7 +1494,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "worklane"
|
||||
version = "0.13.5"
|
||||
version = "0.13.6"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"assert_cmd",
|
||||
|
||||
Reference in New Issue
Block a user