-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit triple-click selection to command field only #9881
Comments
the ctrl+a selection is handled by PowerShell while the triple click is handed by terminal. |
Shells could be configured to emit FTCS_COMMAND_START from Proprietary Escape Codes of iTerm2, and Windows Terminal could then use that to avoid selecting the prompt. The same marking of prompts would be used in #6232. I think cmd.exe and PowerShell already let users embed ESC characters in prompts, so these shells would not have to be changed. Not so sure about Windows PowerShell though. |
Description of the new feature/enhancement
Currently, Ctrl+A will select the entire command/text input, however, triple clicking (mouse version of Select All selects the entire line (including the prompt). GIF shows selecting with mouse vs with keyboard:
I can't think of many (any?) situations where I'd want to include the prompt when selecting or copying a line.
Proposed technical implementation details (optional)
I would like the triple click action to align to the Ctrl+A selection method. Thanks!
The text was updated successfully, but these errors were encountered: