Allow multiline commit messages when using a custom .cz.toml
See original GitHub issueDescription
I would like to be able to write multiline commit messages, however this does not seem to be possible when configuring commitizen using .cz.toml.
Possible Solution
Based off of #74 it seems to work when you customize commitizen via a class, however the filter
parameter in .cz.toml doesn’t seem to work for this use case currently (it gives me ValueError: 'filter' needs to be function that accepts an argument
no matter what I input).
One suggestion would be if you could enclose your commit message in double quotes, and any enter
keypress within those double quotes would just input a newline to the commit message instead of ending the text input. Another suggestion would be if you could specify a parameter multiline
or similar which upon asking the question opens up a default editor (nano/vim) where the user writes their message, just like how git does with git commit
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:19 (15 by maintainers)
Top GitHub Comments
Thanks @marier-nico ! Didn’t notice this cool new feature.
But the behavior would change a bit. If we apply this, we’ll need to type
Esc, Enter
orAlt, Enter
when we type the message. Another idea is making it configurable. If not enabled, we’ll keep the original|
behavior. @Woile What do you think?Hi @arunanshub , the feature you propose was actually discussed on https://github.com/commitizen-tools/commitizen/issues/248. But the problem of this issue I that we did not make our cz rules highly configurable except cz_cutsomize.