Moving the Mark-Mode cursor using the find or marks capabilities #23623

Closed
opened 2026-01-31 08:47:30 +00:00 by claunia · 2 comments
Owner

Originally created by @varzenbot on GitHub (Sep 17, 2025).

Originally assigned to: @carlos-zamora on GitHub.

Description of the new feature

Hello,

I'm using the windows terminal to ssh into other machines and run commands there that return large amounts of output.

Sometimes I want to go select some text from said output and copy it to place it inside an e-mail or teams window to share with colleagues. So I enter into Mark-Mode, but that moves the viewport to the end of the terminal, and forces me to move the mark-mode cursor using page-up until I reach back to the area of interest, which is sometimes hard to see in the large amounts of text.
What I try to do is use find and place a mark there that I reference when moving the cursor back.

Is it possible to have the Mark-Mode cursor be moved by find, or perhaps have it movable to previous marks, and using the arrow keys to refine the selection process.

I have been using the find capability and the mouse so far, but would love to be able to perform this using only the keyboard.

Kind regards!

Windows Terminal
Version: 1.22.12111.0

Proposed technical implementation details

No response

Originally created by @varzenbot on GitHub (Sep 17, 2025). Originally assigned to: @carlos-zamora on GitHub. ### Description of the new feature Hello, I'm using the windows terminal to ssh into other machines and run commands there that return large amounts of output. Sometimes I want to go select some text from said output and copy it to place it inside an e-mail or teams window to share with colleagues. So I enter into Mark-Mode, but that moves the viewport to the end of the terminal, and forces me to move the mark-mode cursor using page-up until I reach back to the area of interest, which is sometimes hard to see in the large amounts of text. What I try to do is use find and place a mark there that I reference when moving the cursor back. Is it possible to have the Mark-Mode cursor be moved by find, or perhaps have it movable to previous marks, and using the arrow keys to refine the selection process. I have been using the find capability and the mouse so far, but would love to be able to perform this using only the keyboard. Kind regards! Windows Terminal Version: 1.22.12111.0 ### Proposed technical implementation details _No response_
claunia added the Issue-BugNeeds-Tag-FixArea-InteractionProduct-Terminal labels 2026-01-31 08:47:31 +00:00
Author
Owner

@varzenbot commented on GitHub (Sep 17, 2025):

I have found https://github.com/microsoft/terminal/issues/4985 that kind of references what I want, but it seems that the find isn't being taken into account as a possibility.

@varzenbot commented on GitHub (Sep 17, 2025): I have found https://github.com/microsoft/terminal/issues/4985 that kind of references what I want, but it seems that the find isn't being taken into account as a possibility.
Author
Owner

@carlos-zamora commented on GitHub (Oct 1, 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. So, if you searched for text, the text would be selected, then you could enter mark mode and you'd be exactly where you wanted to be.

It looks like that functionality got changed in #16227 because now search highlights all results, but it doesn't actually select it. We should be able to fix this by starting mark mode at the currently "selected"/found text.

@carlos-zamora commented on GitHub (Oct 1, 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. So, if you searched for text, the text would be selected, then you could enter mark mode and you'd be exactly where you wanted to be. It looks like that functionality got changed in #16227 because now search highlights _all_ results, but it doesn't actually select it. We should be able to fix this by starting mark mode at the currently "selected"/found text.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23623