You are not logged in.

#1 2012-09-10 20:50:26

corey_s
Member
Registered: 2011-02-09
Posts: 45

[SOLVED] any mutt users out there?

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

#2 2012-09-10 21:46:14

eco
Member
From: netherlands
Registered: 2009-07-02
Posts: 13

Re: [SOLVED] any mutt users out there?

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

#3 2012-09-10 21:57:56

corey_s
Member
Registered: 2011-02-09
Posts: 45

Re: [SOLVED] any mutt users out there?

eco wrote:

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

#4 2012-09-10 22:13:11

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED] any mutt users out there?

Extensive mutt documentation in /usr/share/doc/mutt  smile It's in there in a few places.

Scott

Offline

#5 2012-09-10 22:22:37

corey_s
Member
Registered: 2011-02-09
Posts: 45

Re: [SOLVED] any mutt users out there?

firecat53 wrote:

Extensive mutt documentation in /usr/share/doc/mutt  smile 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

#6 2012-09-11 08:13:06

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED] any mutt users out there?

Also here: http://www.mutt.org/doc/devel/manual.html in one big long HTML file. smile


"...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

#7 2012-09-11 09:01:00

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

Re: [SOLVED] any mutt users out there?

search for "abort" in the manual <F1>.

Offline

#8 2012-09-11 09:35:36

corey_s
Member
Registered: 2011-02-09
Posts: 45

Re: [SOLVED] any mutt users out there?

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

Board footer

Powered by FluxBB