-
Notifications
You must be signed in to change notification settings - Fork 63
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
Accept multiline comments in body #44
Comments
Hi! Thanks for creating this issue! My interpretation of that issue is that it is possible to use an I agree with you that it's much easier to create nice commit messages in a much better format. I do however think there are some very large drawbacks. Firstly the default editor is vim, which scares a large portion of new developers. I think this library should be a helpful tool especially for new developers. Secondly, I think it's a bit distracting to get redirected into some other interface (for all developers who have configured vs code as their default editor). In my experience, most commit messages are short enough to be one line, and the few messages that I want to have longer, I write using GitKraken or in my favorite editor by just running With that said, I do agree that I would want to be able to write multiline commits with this tool as well (even though it's more of a nice to have). And it can also be seen as a motivator to write better and longer commit messages. I looked into creating my own inquirer prompt that would somehow allow multiline inputs but still stay in the same terminal context. We don't want to reinvent the wheel by creating a new fully-fledged editor but what we could do is allow you to write one line at a time. When you have written a line and press enter you get a new input. If you leave it empty we go to the next prompt but as long as you keep writing stuff you will get new inputs. This wouldn't allow you to go back and delete or change your commit message but maybe that's fine. What do you think about all of this? |
I understand your concerns, and thanks for the detailed response. I did not realize that this is a feature not provided in Your suggestion sounds like a nice compromise. I think that a hint of that behavior would help a lot, since an empty line acting as an end is not that intuitive. There are some more suggestions that I would find more intuitive, although I am not sure if they are technically feasible. The discussion in |
Yeah, actually that is a great suggestion! If you can detect The greatest challenge is probably how to support going back to previous lines and delete stuff, but maybe you don't have to support that. |
Indeed it might be out of this scope deleting previous lines, although I do think that it might be possible with some trickery. However, this is still just an extra "nice to have". |
The body of the commit message should accept multiline comments, i.e. paragraphs. According to commitizen/cz-cli#398, the body type should be
editor
, instead ofinput
. I can provide a PR if needed.cz-conventional-changelog-for-jira/engine.js
Lines 159 to 165 in 40370f1
The text was updated successfully, but these errors were encountered: