[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Wheel mouse with mutt



On Fri, Sep 05, 2003 at 06:26:05PM -0700, Bill Moseley wrote:
> Trying to get the mouse wheel to work in the Mutt pager or index 
> screens.
> 
> I found a few google hits on the subject but I can't make it work.
> 
> 
> .Xdefaults:
> 
>    mutt.vt100.translations:  #override \n\
>             None<Btn4Down>:  string(<<) \n\
>             None<Btn5Down>:  string(>>) \n
> 
> Any suggestions?
> 
> My > and < keys do work in Mutt's index but not in pager.

Well, for this bit of the problem, the solution is to set the bindings
in your ~/.muttrc. In my case, I want the up and down arrow keys to
move up and down, so I've got things like

bind generic <up> previous-line
bind generic <down> next-line
bind pager <up> previous-line
bind pager <down> next-line
bind index <up> previous-entry
bind index <down> next-entry

You can try out muttrc settings from within mutt by using : to enter
the muttrc command.

As for the mouse, I use imwheel to translate my scroll wheel events
into keypress events. So once you've got your bindings working you
then tell imwheel to turn wheel movement into the relevant keys and
off you go. You can reconfigure and restart imwheel without having to
restart X.

-- 
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F

Attachment: pgpSeTkomQGcq.pgp
Description: PGP signature


Reply to: