Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll-to-bottom on input and/or printing #4

Open
12Me21 opened this issue Sep 14, 2021 · 1 comment
Open

Scroll-to-bottom on input and/or printing #4

12Me21 opened this issue Sep 14, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@12Me21
Copy link
Owner

12Me21 commented Sep 14, 2021

Right now there's no easy way to scroll all the way to the bottom (i.e. if you scroll up at all, autoscroll stops and lots of text could get printed below your position with no way to get back)
Perhaps it should scroll to the bottom when:

  1. on any keypress (aside from ones which are used for scrolling of course)
  2. when actual input is sent to the terminal (i.e. this wouldn't include special shortcuts like ctrl+shift+c to copy selected text)
  3. when output is printed

iirc most terminals do 3. I don't think this is a good default behavior - you might want to view old output while text is being printed.
2 seems like the best choice, maybe with 3 as an option?

@12Me21 12Me21 added the enhancement New feature or request label Sep 14, 2021
@y-ack
Copy link

y-ack commented Aug 10, 2023

wt's behavior (which i like) is to autoscroll if the print output position would be on screen, i think? (i.e. if you overscrolled or resized the window so that the print cursor position is still onscreen, that still gets autoscrolled, which i guess is the same thing as normal autoscroll because eventually it catches up to be 'at the bottom')
and:
a setting "scroll to input when typing" (defaults to on)
which i believe is like (2) (i.e., the scrolling, tabswitch, and other terminal shortcut ignores it, as well as C-S-c when text is selected("text is selected" feels like a special mode in general))

as far as i know there is no setting to always scroll when new output is printed, but the ergonomics of "pressing return if i'm not sure where current output is" is pretty well-ingrained for me personally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants