On Wednesday 19 Feb 2014 19:19:19 Marcel Partap wrote:
> > Final quirk: I'm not seeing any altered behaviour when I hold down the
> > shift, meta, or alt keys: from what I see in the code, aren't they
> > supposed to alter the scroll rate?
> 
> In which state? copy-mode, alternate screen in less?

In less, but also in copy-mode. No modifier keys seem to have any effect. It 
could be my 
terminal environment, I guess? KDE/Konsole.

> Some additional questions:
> - how much lines should it scroll per wheel event ? 3 is default for
> konsole, xterm scrolls by 5 lines with *VT100.alternateScroll: true

Well, 3 seems natural for me. With mouse-enabled vim, the mouse wheel also 
scrolls 3 lines. 
I don't think it's Konsole doing that, I assume it must be a default in vim.

> - copy mode scrolls 5 lines per wheel event: is that a good default?
> should this have a shared option "mouse-scroll-speed"?

It would be nice to have this be configurable, and it also makes sense to me 
that both scroll 
rates be the same.

> - should the scroll speed modifier keys (SHIFT for single lines, ALT &
> CTRL for faster scrolling) act the same in copy mode?

Makes sense.

> - should modifier speedup be a constant factor (3?) or the value of
> "mouse-scroll-speed" (so you get quadratic/cubic speed :D)

Good question! I guess the catch-all answer is to provide configuration 
allowing the user to 
set fast and slow scroll speeds in addition to the standard one. Maybe a single 
configuration 
option could take one, two, or three parameters:

mouse-scroll-speed <normal> [<fast> [<slow>]]

I would guess a sensible default would be that fast is double the value of 
normal, and slow 
is 1?

Paul
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to