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
Here's something that happens to me 10 times a day. I scroll way up using Ctrl-Shift-PgUp. I find some text I want to copy. I press Ctrl-Shift-M and bam! The shell scrolls me back all the way down to the bottom and turns on select mode. Now I gotta scroll all the way back. It really should stay exactly where it is.
Thanks for filing! A little bit of background. By design, if a selection already exists, when you enter mark mode, you start at that position. From your bug report, it sounds like you're scrolling up, then entering mark mode. Since there isn't an existing selection, Terminal will scroll you back to the bottom to where the cursor is.
A workaround would be to scroll up, then make a selection with the mouse. That way, you can edit it in mark mode.
That said, that kinda defeats the point! When you enter mark mode, you want the viewport to stay in the same spot and a selection to be created. The question is, where do you expect the selection to be created within the viewport /? Any suggestions? The fix itself should be pretty easy if we can get consensus on that.
A workaround would be to scroll up, then make a selection with the mouse
A better explanation to why this defeats the point is that If I wanted to use the mouse, I wouldn't even need Ctrl-Shift-M.
I'm happy you're on board with this feature request.
the question is, where do you expect the selection to be created within the viewport /? Any suggestions? The fix itself should be pretty easy if we can get consensus on that.
I would be fine with anything from the first character to last one to a random character in between. These will all be better than the current state. But the reasonable choice would probably be the first character.
Activity
madhavansingh commentedon Oct 22, 2025
Hi, I wanted to add my experience with this issue for Hacktoberfest 2025.
Mac workflow / external keyboard scenario:
Ctrl+Shift+PgUp.Ctrl+Shift-Mto enter select mode.Expected Behavior:
Impact:
Workarounds (temporary):
Shift + drag).Ctrl+Shift-Mto another keybinding in settings.Additional Notes:
Thanks!
carlos-zamora commentedon Oct 22, 2025
Thanks for filing! A little bit of background. By design, if a selection already exists, when you enter mark mode, you start at that position. From your bug report, it sounds like you're scrolling up, then entering mark mode. Since there isn't an existing selection, Terminal will scroll you back to the bottom to where the cursor is.
A workaround would be to scroll up, then make a selection with the mouse. That way, you can edit it in mark mode.
That said, that kinda defeats the point! When you enter mark mode, you want the viewport to stay in the same spot and a selection to be created. The question is, where do you expect the selection to be created within the viewport /? Any suggestions? The fix itself should be pretty easy if we can get consensus on that.
cool-RR commentedon Oct 22, 2025
A better explanation to why this defeats the point is that If I wanted to use the mouse, I wouldn't even need Ctrl-Shift-M.
I'm happy you're on board with this feature request.
I would be fine with anything from the first character to last one to a random character in between. These will all be better than the current state. But the reasonable choice would probably be the first character.
Fix three GitHub issues: microsoft#19493, microsoft#19488, and micros…
Add PR description template for issues microsoft#19493, microsoft#19488…
mark mode: begin selection at viewport when scrolled up (microsoft#19549
cool-RR commentedon Nov 11, 2025
Thank you for implementing this!