Everduin94 / better-commits

A CLI for creating better commits following the conventional commits specification
MIT License
1.88k stars 69 forks source link

How break a line in detailed description of the chages session #59

Closed Wh-Marc closed 6 months ago

Wh-Marc commented 6 months ago

I can't find the way to write multi line in detailed description of the chages session

image

Wh-Marc commented 6 months ago

I tried to mark this issue with label but it seems I can't select label

Everduin94 commented 6 months ago

Unfortunately, you have to use a \n character to make a new line.

The upstream library that controls the prompts doesn't support multi-line https://github.com/natemoo-re/clack/issues/25

And it looks like they're not accepting / merging PRs :( https://github.com/natemoo-re/clack/pull/143

reggermont commented 4 months ago

Sorry to revive this topic, but @Everduin94 if you want this feature, you could fork clack and have a version with the PR

Everduin94 commented 4 months ago

@reggermont - No worries! I took a look at the PR I originally linked. Just at a glance (and with my limited knowledge of clack), not personally a PR I would merge.

The PR is doing a lot more than just adding multi-line support. And blocks of code like this are concerning imo. Example

We really just need the ability to start a new line when pressing enter, and continuing on something like ctrl-enter. - Forking clack, merging that PR, and maintaining our forked version is a relatively huge amount of effort given the scope of how small better-commits is.