-
Notifications
You must be signed in to change notification settings - Fork 7
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
make autocmd after buffer write optional #17
Comments
Yeah, it also often bothers me, that the check triggers on each BufWrite command. However, I am not sure, how to postpone it until just before quitting Vim and going back to mutt. And even if you could, one would not have the chance to check that the correct file has been attached. Perhaps, it would be better for your autocommand to do a |
Well, another idea: If the user explicitely refused to attach a file, that is, escaped the attachment dialogue (hit enter or space), then further propositions could be disabled (say at least if |
will think about it. |
Please check current head. |
Thanks! Works. |
For example, here's a nested autocmd that saves the buffer after Vim losing focus. So, in the likely event that CheckAttach recognizes a keyword like 'atttach', it will ask for attaching a file every time when returning to Vim.
How about making that Check optional? Instead, thinking of a mutt user that uses Vim as its text editor, the autocmd reminding the user to add an attachment when quitting Vim seems the most useful and indispensable.
The text was updated successfully, but these errors were encountered: