On Fri, 16 Jul 2010, björn wrote:
> On 16 July 2010 06:27, Christian J. Robinson wrote:
> > On Wed, Jun 30, 2010 at 12:21 PM, björn wrote:
> >>
> >> I agree that <MouseUp> is also confusing but unfortunately that
> >> can't be changed since it will break backward compatibility (it is
> >> possible to bind to <MouseUp>). Using <MouseScrollLeft> but then
> >> <MouseUp> seemed even weirder to me which is why I chose
> >> <MouseLeft> even though I dislike it.
> >
> > This thread seems to have petered out without any sort of
> > resolution.
> >
> > I would like to see horizontal mouse wheel support added to Vim.
> >
> > For what my opinion is worth, I don't think we'll ever get away from
> > the <MouseUp>/<MouseDown> identifiers, but perhaps a decent
> > compromise is to continue supporting them as "legacy"/deprecated,
> > then add:
> >
> > <MouseScrollUp> (Same as <MouseUp>)
> > <MouseScrollDown> (Same as <MouseDown>)
> > <MouseScrollLeft>
> > <MouseScrollRight>
>
> I think this is a good compromise -- unless there are any immediate
> objections I'll go ahead and update the patch.
>
> Please note that I still need volunteers to test the patch on GTK
> since I do not have access to it. Independent confirmation that the
> patch actually works might increase the chances of it being included.
> (I have only tested it in MacVim.)
>
As long as you're adding MouseScroll{Left,Right,Up,Down}, would this be
a good time to reverse the naming? (The oddity that <MouseUp> indicates
pushing the scrollwheel toward the bottom of the mouse [i.e. down]?)
So, where 'wheel' indicates a standard scrollwheel or the
supermouse-like trackball:
<MouseScrollUp> (Same as <MouseDown>) (pressing up on 'wheel')
<MouseScrollDown> (Same as <MouseUp>) (pressing down on 'wheel')
<MouseScrollLeft> (pressing left on 'wheel')
<MouseScrollRight> (pressing right on 'wheel')
[probably too confusing, and too late, but just a thought]
And another idea:
I don't have a mouse that supports horizontal scrolling, so I tried (but
failed -- see other thread) to test this using mappings similar to many
graphics editors, where shift+vertical-scroll is translated to
horizontal scrolling. (IIRC, it's usually rotated 90-degrees CCW:
up=left, down=right)
e.g.:
map <S-MouseUp> <MouseLeft>
map <S-MouseDown> <MouseRight>
...err, never-mind. I was going to suggest that those be default
mappings, but I just discovered Shift+ is already used to mean 'a full
page' -- :help <S-MouseUp>.
Nonetheless, possibly useful for others who might want to test this.
--
Best,
Ben
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php