Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop asking for "Exit Mutt?" #468

Closed
tdehaeze opened this issue Mar 14, 2017 · 5 comments
Closed

Stop asking for "Exit Mutt?" #468

tdehaeze opened this issue Mar 14, 2017 · 5 comments
Labels
type:enhancement Feature Request

Comments

@tdehaeze
Copy link

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

@flatcap flatcap added type:discuss Your views/opinions are requested type:enhancement Feature Request labels Mar 14, 2017
@flatcap
Copy link
Member

flatcap commented Mar 14, 2017

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.

@guyzmo
Copy link
Contributor

guyzmo commented Mar 14, 2017

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.

@flatcap
Copy link
Member

flatcap commented Jun 6, 2017

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

@flatcap
Copy link
Member

flatcap commented Jul 3, 2017

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

@flatcap flatcap closed this as completed Jul 3, 2017
@ghost ghost removed the type:discuss Your views/opinions are requested label Jul 3, 2017
@tdehaeze
Copy link
Author

I just realized that I can use C-g instead of C-c and it does not ask "Exit Mutt"!
So, problem solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Feature Request
Projects
None yet
Development

No branches or pull requests

3 participants