feat(ui): rebind ctrl+c to clear input, ctrl+q to quit, ctrl+u to restore#3083
Open
CnsMaple wants to merge 2 commits into
Open
feat(ui): rebind ctrl+c to clear input, ctrl+q to quit, ctrl+u to restore#3083CnsMaple wants to merge 2 commits into
CnsMaple wants to merge 2 commits into
Conversation
…+u restore - Reassign Quit binding from ctrl+c to ctrl+q - Add Editor.ClearInput (ctrl+c) to reset the textarea when focused - Add Editor.RestoreInput (ctrl+u) to restore the most recently cleared value - Update quit dialog and commands panel shortcuts to reflect ctrl+q - Surface new bindings in ShortHelp/FullHelp 💘 Generated with Crush Assisted-by: Crush:MiniMax-M3
Move the clear/restore input hints out of the always-visible bottom bar; they remain in the expanded help shown via ctrl+g. 💘 Generated with Crush Assisted-by: Crush:MiniMax-M3
|
Codex and Claude both exit with ctrl-d (which is pretty usual for anything that has a prompt, such as shells, it's the EOF). The annoying part there is that Claude requires two presses and codex just one, which causes me to often press it twice in codex, which ends up closing the underlying shell. I'd prefer ctrl-d to "close prompt", which usually will mean end Crush? |
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.
Summary
Quitbinding fromctrl+ctoctrl+qEditor.ClearInput(ctrl+c) to clear the textarea while the editor is focused; the cleared value is retainedEditor.RestoreInput(ctrl+u) to restore the most recently cleared value back into the editorctrl+qShortHelp/FullHelpTest plan
go build ./...go test ./internal/ui/...ctrl+c— input clearsctrl+u— input is restoredctrl+qopens the quit dialog;ctrl+ystill toggles yolo;ctrl+zstill suspends💘 Generated with Crush
Assisted-by: Crush:MiniMax-M3