Skip to content

fix(tui): the rail is a column, no F-key defaults, one switch per held arrow - #1378

Merged
huichen merged 1 commit into
mainfrom
pr/huichen
Oct 26, 2026
Merged

huichen merged 1 commit into
mainfrom
pr/huichen

Conversation

@huichen

@huichen huichen commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

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

  • fix(tui): the rail is a column, no F-key defaults, one switch per held arrow

Verification

Self-tests run locally at 1dbf01bcc with the pinned toolchain (rustc/clippy 1.99.1):

  • cargo fmt --all -- --check → clean
  • cargo clippy -p future-tui --all-targets -- -D warnings → clean
  • cargo test -p future-tui --lib → 1279 passed, 0 failed
  • make check-docs → 352 docs OK (placement, bilingual pairing, links, script paths, fences), provider matrix 13 rows

Notes

  • Default keybindings change. No default binding is a function key any more: help, refresh, copy, mouse, linear reading and reduced motion now default to alt+h/r/c/m/l/a, because F1–F12 need an Fn modifier 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+m opens the model picker; ctrl+1 / ctrl+2 select the rail's two tabs, and the help overlay groups actions (chats / choices / panels / interface) before the unrebindable keys and the commands.
  • A held shift+left/right is 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.

…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.
@huichen
huichen enabled auto-merge (squash) October 26, 2026 17:18
@huichen
huichen merged commit 3eed157 into main Oct 26, 2026
10 checks passed
@huichen
huichen deleted the pr/huichen branch October 26, 2026 17:30
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