zerin108 / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Configurable page-by-page scrolling amount #358

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Having used PuTTY before switching to mintty, I was used to Shift-PgUp and 
Shift-PgDn scrolling by half a screen at a time, which can provide a little 
more context when reviewing large amounts of information.

I propose a new configuration item allowing the user to specify a percentage of 
terminal window lines by which to scroll with each press of these keys.  The 
default would be 100% to preserve current behavior.

As an additional potential enhancement, a second modifier, disabled by default, 
could be configured with a different percentage.  This would allow, for 
example, Shift-PgUp to scroll back a half of a screen (50%) and Shift-Alt-PgUp 
to scroll back a quarter of a screen (25%).

I have both of these enhancements working and can provide separate patches for 
each (the second being dependent on the first), including user documentation 
changes.  Please let me know if this is of interest.

Original issue reported on code.google.com by brandon....@gmail.com on 3 Nov 2012 at 9:51

GoogleCodeExporter commented 8 years ago
Here are two patches.  The first just adds the page-by-page scroll percentage.  
The second includes the first and also adds the extra modifier and associated 
percentage.

Original comment by brandon....@gmail.com on 5 Nov 2012 at 10:19

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks very much for going to the trouble of creating patches (including 
documentation!), but sorry, I'm rejecting this. Scrolling by whole pages is 
standard behaviour throughout Windows and other GUIs as well as textmode 
programs, and the keys are called _Page_ up/down after all. Moreover, I just 
don't want to add options for everything, as per the 'min' in mintty.

However, having looked at this, there actually is a problem with the 
page-by-page scrolling anyway. Other programs don't quite scroll by a whole 
page, i.e. when scrolling down, the previous bottom line moves to the top, 
rather than out of view, and vice versa. This can provide a little bit of 
context, and mintty doesn't do that. I've entered issue 359 for this.

Btw, there's also line-by-line scrolling using Shift+up/down, which might be 
helpful.

Original comment by andy.koppe on 17 Nov 2012 at 6:46