Repository navigation
feat(tui): list /mouse in the command palette - #1593
Merged
Merged
Conversation
ace331
enabled auto-merge (squash)
November 12, 2026 08:51
`/mouse` was typed-only: the palette did not offer the one verb a reader
needs exactly when their pointer can no longer select text, and its other
door (the 鼠标捕获 row) is three keystrokes inside ctrl+q.
Move it from TYPED_ONLY to COMMANDS, in name order, and say in both lists
why this preferences-row verb is the one the palette also lists. The docs
and the palette-rule paragraph follow. Add a test that typing `mouse` in
the palette selects the row and `enter` yields Command("/mouse").
ace331
force-pushed
the
feat/tui-palette-mouse
branch
from
November 12, 2026 09:08
f0cea14 to
e3c77c9
Compare
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.
Why
/mousewas typed-only. The palette did not offer the one verb a reader needs exactly when their pointer can no longer select text, and its other door (the 鼠标捕获 row) sits three keystrokes insidectrl+q— the moment a switch hidden in a menu does not get found.What
/mousefromTYPED_ONLYtoCOMMANDS(in name order, between/fusion-settingsand/pin), so/andctrl+plist it and typingmousefilters to its row.docs/guide/tui.mdanddocs/guide/tui.zh-CN.md(palette rule, command table,/mouserow).mousein the palette selects the row, andenteryieldsCommand("/mouse"); existing handler/order/no-overlap tests still cover the moved entry.Behaviour is unchanged:
/mousetoggles mouse capture, no argument, persisted asmouseCapturein~/.future/tui/settings.json, enabled by default.Test plan
cargo test -p future-tui --lib— 1835 passed, 0 failed, 4 ignored.rustfmt --edition 2021 --check tui/src/workbench/mod.rs.the_palette_offers_exactly_its_list_and_no_typed_only_verb,the_palette_offers_mouse_capture_and_runs_it,the_command_column_is_alphabetical,every_palette_entry_has_a_handler.