Cz-cli: longer description how to new line?

Created on 15 Oct 2018  Â·  9Comments  Â·  Source: commitizen/cz-cli

Provide a longer description of the change: (press enter to skip)

Pressing the Enter key will proceed to the next question, not a line break.

Have you encountered a similar situation with me, is there a solution?

Most helpful comment

+1
This is somewhat annoying , and I think it departs from the aim of this tool, which is to make committing easy.

All 9 comments

n

thanks. It works, If this example is the same, I still find it difficult to write long descriptions.

I also wonder how to break the string for the description field while typing
Symbol \ and \n didn't work for me

The \ symbol works in the terminal, but not in the _cz-cli_ prompt

⇒ echo foo\ 
> bar           
foobar

Symbol \ and \n didn't work in my terminal, too.

I find the issue #398 . But do you have any plans to provide a more convenient way?

+1 for this.

A solution would be to just skip the long description prompt and then do git commit --amend to open the vim editor.

+1
This is somewhat annoying , and I think it departs from the aim of this tool, which is to make committing easy.

+1

Bump. This is difficult to handle. \n did not work for me as well. Can you help or let us know if there is any fallback till this is taken up? Thanks.

I use git commit -e and edit the message before the commit fires.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brandondurham picture brandondurham  Â·  7Comments

booc0mtaco picture booc0mtaco  Â·  4Comments

jacobq picture jacobq  Â·  7Comments

emcniece picture emcniece  Â·  3Comments

rbutera picture rbutera  Â·  6Comments