Keyboard shortcut to select only the current prompt/command line #9859
Unanswered
jblue-ops
asked this question in
Feature Requests, Ideas
Replies: 1 comment
-
|
Related: would be nice to have |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request: “Select current line / current prompt” shortcut”
Right now Ghostty has Cmd+A (macOS) / Ctrl+Shift+A (Linux) to select everything visible in the terminal (or the whole scrollback, depending on config).
Many users (including me) very frequently want to select and copy only the command we are currently typing/editing at the prompt, without selecting the entire screen or previous output.
In almost every other terminal I’ve used (iTerm2, WezTerm, Alacritty + custom bindings, Kitty, etc.) there is a dedicated shortcut for this, usually one of:
Suggested behaviour
Add a new default keybind (or make it configurable) that selects only the text on the current primary prompt line (exactly the same range that a triple-click currently selects).
Possible default candidates that don’t conflict with existing Ghostty bindings:
cmd+shift+a(mirrors iTerm2 and feels very natural on macOS)ctrl+shift+lalt+lBonus (optional)
An additional binding that selects the current line and immediately copies it would be even more useful (like iTerm2’s Cmd+Shift+C).
This small addition would be a huge quality-of-life improvement for keyboard-heavy users.
Thanks for the amazing terminal! 🙌
Beta Was this translation helpful? Give feedback.
All reactions