Repository navigation
fix(tui): the rail is a column, no F-key defaults, one switch per held arrow - #1378
Merged
Merged
Conversation
…d arrow - ctrl+m opens the model picker; ctrl+1 / ctrl+2 the rail's two tabs. - no default binding is a function key: F1-F12 need an Fn modifier on a laptop and are absent on a compact keyboard, so help, refresh, copy, mouse, linear reading and reduced motion default to alt+h/r/c/m/l/a. Rebinding to an F key still works, and two new tests pin both rules (no F default, no shared chord). - the help overlay lists the actions grouped (chats / choices / panels / interface), then the keys that are not rebindable, then the commands. - a held shift+left/right switches once, not once per repeat: the key returns SessionStep, the driver reads the whole input burst and applies the net step in one call. Each repeat used to cost a round trip, a transcript load and a repaint, which is what made the rail look stuck. - the rail runs down beside the composer instead of stopping one band early, so the bottom-left is the rail's own background rather than bare canvas. - the composer band is the box it draws: the spare fourth row it reserved was painted as a blank line between the box and the activity row. - with the rail on the left the cursor sat in the rail's cells: the caret column is an offset inside the box and now carries frame.input.x with it.
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 workbench rail is now a real column that runs the full height beside the composer, the default keymap no longer binds any function key, and a held arrow key changes the selection once per press instead of once per repeat.
Commits
Verification
Self-tests run locally at
1dbf01bccwith the pinned toolchain (rustc/clippy 1.99.1):cargo fmt --all -- --check→ cleancargo clippy -p future-tui --all-targets -- -D warnings→ cleancargo test -p future-tui --lib→ 1279 passed, 0 failedmake check-docs→ 352 docs OK (placement, bilingual pairing, links, script paths, fences), provider matrix 13 rowsNotes
alt+h/r/c/m/l/a, because F1–F12 need anFnmodifier on a laptop and are missing on compact keyboards. Rebinding to an F key still works; two new tests pin both rules (no F-key default, no shared chord).ctrl+mopens the model picker;ctrl+1/ctrl+2select the rail's two tabs, and the help overlay groups actions (chats / choices / panels / interface) before the unrebindable keys and the commands.shift+left/rightis applied as the net step of one input burst, so a repeat no longer costs a round trip, a transcript load and a repaint each — that was what made the rail look stuck.