You are not logged in.
So I want to be able to abort/exit mutt's line editor with <esc> (like is default in many other programs..). I don't know why, but it seems there is no corresponding binding for this functionality. The default keybind for this is control-g listed here as "n/a." If I do "macro editor <esc> \cg" escape will just put ^G in the line editor. Does anyone know how to fix this?
Last edited by angelic_sedition (2014-04-27 05:29:29)
Offline
Offline
No real solution on the mutt side it would seem.. that's pretty dissapointing. Enter is basically the same behaviour if nothing is typed and "macro editor <esc> <enter>" works for searches. That's useless for the editor when adding headers though since it will just go to the next header, so I've found the next best solution to be using something like xsendkey or xdotool to fake control-g:
macro editor \e "<enter><shell-escape>xsendkey Control+g<enter>"It will just type the shell command without the first enter when adding headers. I guess this suffices (it doesn't cause any slowdown at least; index bindings work immediately after hitting escape) though I'm kind of surprised mutt doesn't and can't do this..
Offline