You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggestion: Allow line selection in terminal #46761
feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesterminalGeneral terminal issues that don't fall under another labelverification-neededVerification of issue is requestedverifiedVerification succeeded
Suggestion: Allow selecting a line at a time while navigating in terminal line by line.
With #46594 I can use CMD+UpArrowCMD+DownArrow to navigate, and can press Shift+CMD+UpArrow and Shift+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 and CMD+ALT+PageDown to navigate line by line in the terminal, perhaps Shift+CMD+ALT+PageUp and Shift+CMD+ALT+PageDown could be used for that.
Opening to PRs, this will involve adding 2 new commands terminal.integrated.selectToNextLine/selectToPreviousLine and handling it within TerminalCommandTracker.
David (@ddruker) sure! This will probably involve having some additional state in TerminalCommandTracker to tell whether it's a command or a line focused.
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 number it might be invalid when lines are trimmed off the top of the terminal.
Daniel Imms (@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.
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.
David (@ddruker) for the selectTo* commands, the 'focused' line is always in the middle of the viewport.
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.
Select to previous line works great.
However I was not able to get anything useful from the select to next line since I always have the last line focused in my terminal. Even if I select some text in the middle of the terminal select to next
line simply jumps back to last line. What am I missing here?
Daniel Imms (@Tyriar) ok, adding verified even though I find it a bit unintuitive.
I would expect that the select next line would work even if I have 3 lines manualy selected.
feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesterminalGeneral terminal issues that don't fall under another labelverification-neededVerification of issue is requestedverifiedVerification succeeded
Activity
Tyriar commentedon Mar 28, 2018
Opening to PRs, this will involve adding 2 new commands
terminal.integrated.selectToNextLine/selectToPreviousLineand handling it withinTerminalCommandTracker.ddruker commentedon Apr 7, 2018
Daniel Imms (@Tyriar) Mind if I tackle this? I was just in the integrated terminal code so this code be a good issue for me.
Tyriar commentedon Apr 8, 2018
David (@ddruker) sure! This will probably involve having some additional state in
TerminalCommandTrackerto tell whether it's a command or a line focused.https://github.com/Microsoft/vscode/blob/3fbfccad359e278a4fbde106328b2b8e2e2242a7/src/vs/workbench/parts/terminal/node/terminalCommandTracker.ts#L25-L26
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
numberit might be invalid when lines are trimmed off the top of the terminal.ddruker commentedon Apr 8, 2018
Daniel Imms (@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.
Tyriar commentedon Apr 9, 2018
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.
David (@ddruker) for the
selectTo*commands, the 'focused' line is always in the middle of the viewport.ddruker commentedon Apr 10, 2018
Tyriar commentedon May 19, 2018
Commands added in #47991
isidorn commentedon May 29, 2018
Select to previous line works great.
However I was not able to get anything useful from the select to next line since I always have the last line focused in my terminal. Even if I select some text in the middle of the terminal select to next
line simply jumps back to last line. What am I missing here?
Tyriar commentedon May 29, 2018
Isidor Nikolic (@isidorn) select next command/line need to be used after select previous command/line.
isidorn commentedon May 29, 2018
Daniel Imms (@Tyriar) ok, adding verified even though I find it a bit unintuitive.
I would expect that the select next line would work even if I have 3 lines manualy selected.