Repository navigation
fix(tui): advertise the terminal shortcut in help and make F1 the only help key - #384
Merged
Merged
Conversation
…y help key Help's Global section listed Ctrl+E and F4 but not Ctrl+`, so the terminal panel was only mentioned once you already had it focused — where it told you how to close a panel you had no way to discover. Add it to the Global section. Drop `?` as a help shortcut. It was never global despite being listed under "Global": it lived in semantic_command_for_composer_key and only fired on an empty composer, so it was silently swallowed everywhere else. F1 is the real global binding and is now the only key that opens help; `?` reaches the composer as an ordinary character. Update the onboarding shortcut list to match. Tests: help advertises the terminal shortcut from every focus block, and `?` types into an empty composer instead of opening help. Renames the existing question_mark_opens_help_overlay test, which already pressed F1.
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
…y help key (#384) Help's Global section listed Ctrl+E and F4 but not Ctrl+`, so the terminal panel was only mentioned once you already had it focused — where it told you how to close a panel you had no way to discover. Add it to the Global section. Drop `?` as a help shortcut. It was never global despite being listed under "Global": it lived in semantic_command_for_composer_key and only fired on an empty composer, so it was silently swallowed everywhere else. F1 is the real global binding and is now the only key that opens help; `?` reaches the composer as an ordinary character. Update the onboarding shortcut list to match. Tests: help advertises the terminal shortcut from every focus block, and `?` types into an empty composer instead of opening help. Renames the existing question_mark_opens_help_overlay test, which already pressed F1.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
…y help key (#384) Help's Global section listed Ctrl+E and F4 but not Ctrl+`, so the terminal panel was only mentioned once you already had it focused — where it told you how to close a panel you had no way to discover. Add it to the Global section. Drop `?` as a help shortcut. It was never global despite being listed under "Global": it lived in semantic_command_for_composer_key and only fired on an empty composer, so it was silently swallowed everywhere else. F1 is the real global binding and is now the only key that opens help; `?` reaches the composer as an ordinary character. Update the onboarding shortcut list to match. Tests: help advertises the terminal shortcut from every focus block, and `?` types into an empty composer instead of opening help. Renames the existing question_mark_opens_help_overlay test, which already pressed F1.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
…y help key (#384) Help's Global section listed Ctrl+E and F4 but not Ctrl+`, so the terminal panel was only mentioned once you already had it focused — where it told you how to close a panel you had no way to discover. Add it to the Global section. Drop `?` as a help shortcut. It was never global despite being listed under "Global": it lived in semantic_command_for_composer_key and only fired on an empty composer, so it was silently swallowed everywhere else. F1 is the real global binding and is now the only key that opens help; `?` reaches the composer as an ordinary character. Update the onboarding shortcut list to match. Tests: help advertises the terminal shortcut from every focus block, and `?` types into an empty composer instead of opening help. Renames the existing question_mark_opens_help_overlay test, which already pressed F1.
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.
What
Two help/keybinding fixes found while driving the TUI in a real PTY.
1. `Ctrl+`` was missing from help's Global section.
The terminal panel is reachable from anywhere, but help listed it only inside the
FocusBlock::BottomPanelbranch — so it told you how to close a panel you had no way to discover. It now sits in the Global section besideCtrl+E, matching where the binding actually lives incommands.rs.2.
?is no longer a help shortcut; F1 is the only one.?was listed under "Global" but was never global. It lived insemantic_command_for_composer_keyguarded on an empty composer, so it fired only from an empty chat box and was silently swallowed in the editor and everywhere else. Removing it means?reaches the composer as an ordinary character.F1(already the real global binding) and/helpremain.The onboarding shortcut list in
overlays.rsis updated to match.Tests
help_advertises_the_terminal_shortcut_from_every_block— asserts the Global line renders from Workspace, Files, Composer and Footer. Verified to fail without the fix, so it isn't vacuous.question_mark_types_into_an_empty_composer— pins the new behaviour on the exact case that used to be intercepted.question_mark_opens_help_overlayrenamed tof1_opens_help_overlay; it already pressed F1 and the old name was stale.Verification
cargo fmt --all -- --check,cargo clippy --all-targets,cargo test --workspaceall clean.Driven in a real tmux PTY at 130x38:
F1opens help, which renders• Ctrl+\Toggle terminal paneland• F1 Help`?types a literal?into the composerCtrl+\`` opens a real/bin/zsh -l` in the workspace dir and toggles closed cleanlyNote
F1 is now the only key that opens help. Some terminal emulators and multiplexer configs bind F1 themselves;
/helpremains as the non-key fallback. Worth a thought if you'd rather keep a printable-key alternative.