-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Description
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.