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

Feature request: User define the commit trigger command #178

Open
Nelyah opened this issue Sep 5, 2019 · 1 comment
Open

Feature request: User define the commit trigger command #178

Nelyah opened this issue Sep 5, 2019 · 1 comment

Comments

@Nelyah
Copy link

Nelyah commented Sep 5, 2019

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!

@jreybert
Copy link
Owner

jreybert commented Dec 5, 2019

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.

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

No branches or pull requests

2 participants