Skip to content

Scroll to previous/next prompt #6232

@carlos-zamora

Description

@carlos-zamora

Another suggestion: how hard would it be to account for navigation in the output buffer by command?

For example, lets say you have the following terminal output:

> pwd
/some/path

> dir
// lots of output

> whoami
some-user

I would like to be able to skip past the output of a command and move to the input prompt of the next one. For example, if my cursor were at the bottom, pressing some keystroke would move me to the second last line. Pressing it again moves me to the input prompt where I typed dir, allowing me to easily skip past the many lines of output. This could let me then go down to review the output of the dir command at my leisure, especially useful in the situation where it scrolls on for many lines.

Originally posted by @Neurrone in #5804 (comment)

Description of the new feature/enhancement

In macOS' terminal, pressing cmd+up/down scrolls the terminal to the previous/next prompt. As mentioned above, this would be a useful way to navigate the buffer.

Proposed technical implementation details (optional)

I genuinely don't know how this is done. Maybe you could cache the position where user input occurred? Then navigate through those? Even then, when using a text editor like vim, Terminal should scroll up to the previous prompt, instead of the previous line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A11yMASAccessibility trackingA11ySev3Accessibility trackingA11yTTValidatedYet another label for the a11y folks. They want so many. So so many.A11yWCAGAccessibility trackingArea-AccessibilityIssues related to accessibilityArea-InputRelated to input processing (key presses, mouse, etc.)Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Disability-MobilityAccessibility trackingHCL-E+DAccessibility trackingHCL-WindowsTerminalAccessibility trackingInclusionBacklogAccessibility trackingInclusionBacklog-Windows TerminalWin32Accessibility trackingInclusionCommitted-202206Accessibility trackingIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.WindowsTerminal_Win32

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions