vimagit icon indicating copy to clipboard operation
vimagit copied to clipboard

Feature request: User define the commit trigger command

Open Nelyah opened this issue 6 years ago • 1 comments

Thank you a lot for the Magit plugin, I really love it!

One thing that bothers me though is that I cannot customise the command which will trigger the commit. I have this compulsion to save whenever I exit INSERT mode. The thing is, saving triggers the commit if the commit message is not empty.

I would like to be able to set what will trigger the commit message. Another solution would be to only trigger the commit on file exit using ZZ, :wq, :x, but not on :w.

Thank you!

Nelyah avatar Sep 05 '19 20:09 Nelyah

The way commit is triggered for the moment, I can't differentiate ZZ, :wq or :w. I may add an option to globally disable the trigger on write buffer actions.

jreybert avatar Dec 05 '19 09:12 jreybert