cz-cli icon indicating copy to clipboard operation
cz-cli copied to clipboard

support typing the commit type as well as arrow keys

Open scamden opened this issue 7 years ago • 7 comments

not sure if there already is some way to do this, but i would find it more convenient if i could type the commit type manually and have it either filter the list of options or simply validate what i enter before letting me move on.

scamden avatar Nov 02 '16 20:11 scamden

@scamden thanks for the suggestion. So, you're looking for something that gives you green/red indicator to see if it passed the requirements set by the project? I like this idea but it is most likely different from the goals of this project since we're really centered around the idea of having fields for each thing that you have to fill in rather than making you guess or already be familiar with the format of the repo author. If I am misunderstanding, let me know as I'm interested in making this as user friendly as possible.

jimthedev avatar Nov 04 '16 11:11 jimthedev

hey @jimthedev, i love that commitizen educates me about the available options, but after a while i've become so familiar with the list of options that it would be faster for me to type one that's farther down the list than to press the arrow key like 7 times for example. you could just do quick prefix filtering on the supplied types. so for example when i type f, feat and fix comes up in conventional mode and if i type like r i could immediately press enter for refactor.

as a side note, it would be really nice to accept the short message from the command line similar to git commit -m i'm just so used to typing it that i often do and it explodes after i've chosen all the commitizen options.

scamden avatar Nov 05 '16 20:11 scamden

Using fzf or something to filter the types would be useful. Right now it is a pain to have to use the arrow keys when I am used to everything having filters. This is mostly due to the fact that I use fish-shell which has amazing autocomplete.

nesl247 avatar Aug 02 '18 20:08 nesl247

This could be enabled with those inquirer plugins:

  • https://github.com/robin-rpr/inquirer-search-list

  • https://github.com/mokkabonna/inquirer-autocomplete-prompt

J3m5 avatar Nov 16 '20 13:11 J3m5

I would like to address this issue again. This feature would significantly improve and speed up the workflow.

mheob avatar Nov 17 '22 06:11 mheob

I would also love to see this work with fzf.

ariel-frischer avatar Feb 10 '23 16:02 ariel-frischer

This adapter seems to have what we are asking: https://github.com/Zhengqbbb/cz-git

ariel-frischer avatar Feb 10 '23 17:02 ariel-frischer