Scroll to previous command (snap point) #16934

Closed
opened 2026-01-31 05:27:40 +00:00 by claunia · 3 comments
Owner

Originally created by @carlocardella on GitHub (Mar 5, 2022).

Description of the new feature/enhancement

It would be useful to be able to scroll back (and forward) to the position of the previous command: I mean not just scroll up one page or a few lines at a time (already possible) but jump directly to the line of the previous command, similarly to other terminals in Ubuntu and maxOS (e.g. https://stackoverflow.com/questions/17212643/how-to-scroll-back-the-terminal-to-where-the-last-command-was-given).

Visual Studio Code has an implementation here:

Proposed technical implementation details (optional)

Originally created by @carlocardella on GitHub (Mar 5, 2022). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement It would be useful to be able to scroll back (and forward) to the position of the previous command: I mean not just scroll up one page or a few lines at a time (already possible) but jump directly to the line of the previous command, similarly to other terminals in Ubuntu and maxOS (e.g. https://stackoverflow.com/questions/17212643/how-to-scroll-back-the-terminal-to-where-the-last-command-was-given). Visual Studio Code has an implementation here: - https://code.visualstudio.com/updates/v1_22#_command-tracking - [scrollToPreviousCommand](https://github.com/microsoft/vscode/blob/eb87968766f00edb208bb31fda677a9670472856/src/vs/workbench/contrib/terminal/browser/xterm/commandTrackerAddon.ts#L68) <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 05:27:40 +00:00
Author
Owner

@j4james commented on GitHub (Mar 5, 2022):

This is being tracked in issue #6232.

@j4james commented on GitHub (Mar 5, 2022): This is being tracked in issue #6232.
Author
Owner

@zadjii-msft commented on GitHub (Mar 7, 2022):

/dup #6232

Thanks!

@zadjii-msft commented on GitHub (Mar 7, 2022): /dup #6232 Thanks!
Author
Owner

@ghost commented on GitHub (Mar 7, 2022):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Mar 7, 2022): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16934