You are not logged in.
Got this problem that's annoying me with mutt:
When I issue a command in mutt that I want to cancel... say, I do a 'c' for change-mailbox, which then provides a prompt: "Open mailbox ('?' for list): " ... but then I decide I don't actually want to do this, and just want to cancel that command.
First question:
* Is there some other key combo besides <Ctrl>-c to abort the command? Preferably one which does _not_ then provide _another_ prompt asking me if I want to quit mutt? ( aka: "Exit Mutt? ([yes]/no): " )
Second question:
* How do I change the behavior for that "Exit mutt?" prompt so that 'no' is the default choice rather than 'yes'? ( aka: "Exit Mutt? (yes/[no]): " )
( with regards to the second question, my first attempt was to simply define "set quit=ask-no", in my muttrc... but vexingly, that only modifies the default choice when I explicitly execute the 'x' (exit), or 'q' (quit) commands... it makes no affect on the "Exit Mutt?" prompt when I hit '<Ctrl>-c'. )
I often find I want to abort/cancel a mutt command... so I'm getting tired of having to always be confronted with a secondary prompt, which I _then_ have to specify 'n' for the non-default choice...
Any pointers is much appreciated!
Last edited by corey_s (2012-09-10 22:00:26)
Offline
Hey, the answer to the first question is control + g.
The other one I don't know.
eco
"All programs can be optimized, and all programs have bugs; therefore all programs can be optimized to one line that doesn’t work."
Offline
Hey, the answer to the first question is control + g.
... THAT's it... thanks a ton man! ( I'm returning to mutt after years of a hiatus... I knew there was an actual 'cancel command' keycombo but couldn't remember it or find it!
( by the way, do you happen to know where in the mutt docs or man pages the 'control + g' command is documented? )
Last edited by corey_s (2012-09-10 22:00:05)
Offline
Extensive mutt documentation in /usr/share/doc/mutt
It's in there in a few places.
Scott
Thanks - I'll scope around in there, though my first initial efforts haven't found anything yet... specifically the <ctrl>- commands.
Offline
Also here: http://www.mutt.org/doc/devel/manual.html in one big long HTML file. ![]()
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
search for "abort" in the manual <F1>.
Offline
Found it - thanks guys!
http://www.mutt.org/doc/devel/manual.ht … eys-editor
I'll subscribe to the mutt users list to ask about that second question:
* How do I change the behavior for the "Exit mutt?" prompt which shows up when you 'ctrl-c', so that 'no' is the default choice rather than 'yes'? ( aka: "Exit Mutt? ([no]/yes): " )
... it's weird, there's like three ways of exiting mutt:
'x' -> "Exit Mutt without saving? ([no]/yes): "
'q' -> "Quit Mutt? ([no]/yes): "
Ctrl-C -> "Exit Mutt? ([yes]/no): "
... "set quit=ask-no" works as advertised for the first two ( 'x' and 'q' ), but has no effect on the last one ( Ctrl-C ).
Last edited by corey_s (2012-09-11 09:36:06)
Offline