Neomutt: Stop asking for "Exit Mutt?"

Created on 14 Mar 2017  路  4Comments  路  Source: neomutt/neomutt

Hello,

I would like to know if there is a way to setup a default behaviour when I use Ctrl-C ? It always ask me 'Exit Mutt ? ([yes], no)' and it's quite annoying...

For q and x I used set quit in my conf file. But I couldn't find it for Ctrl-C.

Thanks

hard enhancement

Most helpful comment

I agree and vote for that change of behaviour. I have so many times quit mutt with harm by mistake.

Actually, another good idea would be to have a third smart choice for x/q: when the index is dirty (e.g. there are mails marked as to be deleted, but actually are not), ask Index not synced, are you sure you want to quit? otherwise just quit.

All 4 comments

Of all the keystrokes, Ctrl-C is handled differently.
It generates a signal which we can use to interrupt lengthy processes.

A simple change we _could_ make is to follow Vim's behaviour - don't quit, but tell the user how to quit:
Type :quit<Enter> to exit Vim
Press 'q' to exit NeoMutt

The 'q' would have to be looked up in the user's keybindings, of course.

I agree and vote for that change of behaviour. I have so many times quit mutt with harm by mistake.

Actually, another good idea would be to have a third smart choice for x/q: when the index is dirty (e.g. there are mails marked as to be deleted, but actually are not), ask Index not synced, are you sure you want to quit? otherwise just quit.

One other thought...

If mutt can't find a mapping to exit, then Ctrl-C should ask "Exit Mutt?"
Otherwise these mappings would make it rather hard to leave mutt:

bind index q noop
bind index x noop
bind index : noop

Sorry, this enhancement didn't attract someone to write some code.
This issue will now be closed, but listed on the Closed Discussions page.

Was this page helpful?
0 / 5 - 0 ratings