You are not logged in.

#1 2016-06-23 00:42:21

masque
Member
Registered: 2013-02-24
Posts: 25

[Solved] mutt: can't rebind limit command

I'm trying to use vim-like movement keys in mutt, but shifted to the right like in i3, so kl for down/up instead of jk.
To do so, i need to remap the 'l' key, which is bound to the limit command... but I can't.

I tried to

bind pager i limit
bind pager k next-line
bind pager l previous-line

but when I press 'i', mutt tells me that the key is not bound and when I press 'l' it launches the limit command instead of going to the previous line

Last edited by masque (2016-06-23 10:20:33)

Offline

#2 2016-06-23 05:33:19

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [Solved] mutt: can't rebind limit command

Make sure that your muttrc is getting sourced properly.

Offline

#3 2016-06-23 08:57:12

masque
Member
Registered: 2013-02-24
Posts: 25

Re: [Solved] mutt: can't rebind limit command

I'm quite sure is getting sourced. Every other changes does have effect.

Here is my muttrc: https://arin.ga/gpdyD7

It's a stripped down and modified version of this: https://bitbucket.org/jasonwryan/centur … ew-default

Offline

#4 2016-06-23 09:08:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] mutt: can't rebind limit command

Are you sure you haven't confused pager and index?

I can rebind `l` to next-line in either and it works as expected...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-06-23 09:23:56

masque
Member
Registered: 2013-02-24
Posts: 25

Re: [Solved] mutt: can't rebind limit command

You were right, I confused pager and index... and next/prevoius-line with next/previous-undeleted

These are the keybinds that now works for me:

bind pager k            next-line
bind pager l            previous-line
bind index k            next-undeleted
bind index l            previous-undeleted
bind pager K            next-undeleted
bind pager L            previous-undeleted
bind index K            next-unread
bind index L            previous-unread
bind index i            limit

Offline

#6 2016-06-23 10:17:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] mutt: can't rebind limit command

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB