commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter
http://commitizen.github.io/cz-cli/
MIT License
16.77k stars 552 forks source link

support typing the commit type as well as arrow keys #381

Open scamden opened 7 years ago

scamden commented 7 years ago

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.

jimthedev commented 7 years ago

@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.

scamden commented 7 years ago

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.

nesl247 commented 6 years ago

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.

J3m5 commented 3 years ago

This could be enabled with those inquirer plugins:

mheob commented 1 year ago

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

ariel-frischer commented 1 year ago

I would also love to see this work with fzf.

ariel-frischer commented 1 year ago

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