Commit template and $EDITOR support
#758
noirbizarre
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A colleague of mine shared with me 2 easy possible improvements for
cz commitI want to share for feedback before submitting pull-requests.git commit --templateCurrently, committers have the choice between a fully prompted approach using
cz commitand no assistance except a pre-commit check.He suggested that commitizen provide
git commit --template <tpl>support, so people used to commit from their editors would just have a commit template generated from the plugin.I think this is a good idea and could take the form of a simple flag
cz commit --templatewhich would basically wrapsgit commit --template <path/to/commitizen-generated.template>with a commit template generated from the plugin prompts.$EDITORsupport for multiline promptsThe discussion with him started by this. He asked me if
cz commithas some kind of support for opening multiline prompts into$EDITOR.I took a look at
questionnaryandprompt-toolkitwhich are used behind the scene, and there isa
open_in_editormethod allowing that.I imagine we can add a flag
--editortocz committo open multiline prompts in the editor.What do you think ?
Beta Was this translation helpful? Give feedback.
All reactions