-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Suggestion: Allow line selection in terminal #46761
Comments
Opening to PRs, this will involve adding 2 new commands |
@Tyriar Mind if I tackle this? I was just in the integrated terminal code so this code be a good issue for me. |
@ddruker sure! This will probably involve having some additional state in We probably want to create a new marker whenever the line is changed (if the previous line is not a command), if we just track it with a |
@Tyriar I'm assuming this would only be previous line selection and only one line can be selected at a time using the proposed commands. Does that sound right? Also, would the UX be similar to line by line navigation, where the terminal window always scrolls? For example, the terminal window does not need to scroll unless the line is out of view. |
Next should be added as well to mirror the existing commands. Users could for example go one line too far and want to go back.
@ddruker for the |
Very good. Thank you! 🙏
… On Apr 9, 2018, at 1:18 PM, Daniel Imms ***@***.***> wrote:
I'm assuming this would only be previous line selection and only one line can be selected at a time using the proposed commands. Does that sound right?
Next should be added as well to mirror the existing commands. Users could for example go one line too far and want to go back.
Also, would the UX be similar to line by line navigation, where the terminal window always scrolls? For example, the terminal window does not need to scroll unless the line is out of view.
@ddruker for the selectTo* commands, the 'focused' line is always in the middle of the viewport.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Commands added in #47991 |
Select to previous line works great. |
@isidorn select next command/line need to be used after select previous command/line. |
@Tyriar ok, adding verified even though I find it a bit unintuitive. |
testing #46594
Suggestion: Allow selecting a line at a time while navigating in terminal line by line.
With #46594 I can use
CMD+UpArrow
CMD+DownArrow
to navigate, and can pressShift+CMD+UpArrow
andShift+CMD+DownArrow
to select a block of text in the terminal (between commands). This is cool for selecting blocks of text that are the output of a command.But, what if I want to select a single line at a time? Since I can use
CMD+ALT+PageUp
andCMD+ALT+PageDown
to navigate line by line in the terminal, perhapsShift+CMD+ALT+PageUp
andShift+CMD+ALT+PageDown
could be used for that.The text was updated successfully, but these errors were encountered: