vivaxy / vscode-conventional-commits

💬Conventional Commits for VSCode.
https://marketplace.visualstudio.com/items?itemName=vivaxy.vscode-conventional-commits
MIT License
309 stars 32 forks source link

[FEAT] Allow line break in long description #307

Open joezappie opened 1 year ago

joezappie commented 1 year ago

Is your feature request related to a problem? Please describe

I want to be able to provide more than 72 characters for the long description and sometimes I want to separate my long description with line breaks to make it easier to read.

Describe the solution you'd like

I'd like to be able to press "shift-enter" to get a new line.

Describe alternatives you've considered

Currently I make sure not to stage any changes, then cancel the commit when it asks. This leaves the convention commit message in the source control tab, where I can format my description and then manually commit it.

I see there is also a conventionalCommits.autoCommit property I could set so that it doesn't auto commit, but the majority of the time I'm okay with it auto committing.

Additional context

Example - I'd much rather have this:

Added two new environment variables:
- VITE_API_HOST
- VITE_API_PORT

Rather than

Added two new environment variables: VITE_API_HOST and VITE_API_PORT
yi-Xu-0100 commented 1 year ago

👋 @jrj2211, Here is a solution:

joezappie commented 1 year ago

Thank you, that will work. Just out of curiosity, is there a reason the long description isn't a textarea instead of a single line textfield? Its more natural to hit enter (or shift-enter) than type /n but understand there's probably a challenge on why that's the case.

yi-Xu-0100 commented 1 year ago

@jrj2211 inputbox did not support multiline input. 😢

See in an old issue (need feature):

SinaKarimi7 commented 6 months ago

I think it'll better to support Shift+Enter as new line in long description menu.