Re: FAQ: xterm-keys and editors

2014-02-18 Thread Mark Oteiza
Nicholas Marriott writes: >> I wrote tmux.el, it's the Groups thread that gave me the clue. I tried >> rewriting the useful bits from there into the file, as well as applying >> the other things you suggested. >> >> On another note, the plugins that Suraj pointed out look nice. In >> particula

RFC: Simple mouse wheel emulation

2014-02-18 Thread Marcel Partap
Hi, please comment on this. - sends keyboard UP/DOWN sequences per mouse wheel event - active in alternate screen mode (like xterm) - also active when pressing SHIFT outside alternate screen (like previous iteration) - scrolls 3 lines per event (like f.e. konsole) - or single lines when SHIFT is he

Re: RFC: Simple mouse wheel emulation

2014-02-18 Thread Thomas Adam
On 18 February 2014 11:36, Marcel Partap wrote: > Hi, > please comment on this. What are you asking for here? Whether it's a good idea to have this in tmux, or were you after something else? I personally think these sorts of things are bloat. -- Thomas Adam ---

Re: RFC: Simple mouse wheel emulation

2014-02-18 Thread Paul Gideon Dann
On Tuesday 18 Feb 2014 11:55:27 Thomas Adam wrote: > On 18 February 2014 11:36, Marcel Partap wrote: > > Hi, > > please comment on this. > > What are you asking for here? Whether it's a good idea to have this > in tmux, or were you after something else? I personally think these > sorts of thing

Re: RFC: Simple mouse wheel emulation

2014-02-18 Thread Tim Visher
On Tue, Feb 18, 2014 at 6:36 AM, Marcel Partap wrote: > Hi, > please comment on this. > - sends keyboard UP/DOWN sequences per mouse wheel event > - active in alternate screen mode (like xterm) > - also active when pressing SHIFT outside alternate screen (like > previous iteration) > - scrolls 3 l

Re: RFC: Simple mouse wheel emulation

2014-02-18 Thread Marcel Partap
Thanks for your quick review & good catch, please try again with attached revision. c; #Regards! P.S.: [some patch NIH broke the command history in alternate screen..] >From 48c5d8b8bf332b3f67f77154561a36027e013198 Mon Sep 17 00:00:00 2001 From: Marcel Partap Date: Mon, 17 Feb 2014 22:02:14 +0100

Re: RFC: Simple mouse wheel emulation

2014-02-18 Thread Paul Gideon Dann
On Tuesday 18 Feb 2014 15:52:27 Marcel Partap wrote: > Thanks for your quick review & good catch, please try again with > attached revision. c; > #Regards! > > P.S.: [some patch NIH broke the command history in alternate screen..] OK, so now I have this: * With mouse-mode=on, vim scrolls as expe

Re: RFC: Simple mouse wheel emulation

2014-02-18 Thread Marcel Partap
> * With mouse-mode=on, vim scrolls as expected with the mouse wheel, but > "less" does not: it enters copy mode. Can only reproduce with less --no-init (no alternate screen).. does # env|grep LESS show any special flag settings? > * With mouse-mode=off, vim and "less" both scroll as expected. What

Re: RFC: Simple mouse wheel emulation

2014-02-18 Thread Paul Gideon Dann
On Tuesday 18 Feb 2014 16:41:54 Marcel Partap wrote: > > * With mouse-mode=on, vim scrolls as expected with the mouse wheel, but > > "less" does not: it enters copy mode. > > Can only reproduce with less --no-init (no alternate screen).. does > # env|grep LESS > show any special flag settings? LE

Re: FAQ: xterm-keys and editors

2014-02-18 Thread Nicholas Marriott
Ok I think it is better not to include tmux.el at all then, instead just put the bit to copy in FAQ like this: diff --git a/FAQ b/FAQ index da72d43..c5abf01 100644 --- a/FAQ +++ b/FAQ @@ -238,6 +238,31 @@ would be welcome. vim users may also want to set the "ttyfast" option inside tmux. +* Ho

Re: RFC: Simple mouse wheel emulation

2014-02-18 Thread Marcel Partap
>> > * With mouse-mode=on, vim scrolls as expected with the mouse wheel, but >> > "less" does not: it enters copy mode. >> show any special flag settings? > LESS=-g -i -M -R -S -w -z-4 Still can't reproduce. What is your less version? #less -V Also, does tmux command # display-message "#{alternate_