-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom commands prompt type with multiline support #3476
Comments
Are you thinking about the Predefined custom commands do support multiple lines, you just need to write them like this ( - key: 'D'
command: >-
echo "line1" &&
echo "line2"
context: 'localBranches'
stream: true I don't think we document it anywhere, though 🤔 |
Thanks for your answer :) This is useful to know, but I think I might have been misunderstood... I am talking about the predefined custom commands I can configure in |
Ah, now I get it. Currently we don't have something like that, but (at a glance) it shouldn't be too difficult to implement. Would you maybe be willing to investigate this? (you can say no :) ) |
cool :) I have to say no, learning go is not checked on my wish list yet... ;-) Overall I think that a generic prompt supporting multi-line text could be more suitable as a custom command prompt type, rather than a mixed one-line / multi-line prompt which is more specific. |
Agreed, but the benefit of the mixed one is the |
Ah yes right! 😄 And I must say that it's a very good mechanism, it was very intuitive for me the first time I used it. |
Hi, I created PR for a multiline supported prompt and named it |
Thanks @yongjoon-km , it works :) Regarding @mark2185 comment, I see you chose Works great for me, but could it be a problem if the combination is already associated somewhere in lazygit or system wide? |
Hi @Djedouas, I chose |
Great that sounds perfect 😃 |
Hi,
I would like to adapt the custom command with conventional commit templates to add a step for writing a multiline description.
To do this, I am looking for a prompt type that could be used to input text on more than one line, like we have when committing (i.e. the prompt below the commit title).
Thanks
The text was updated successfully, but these errors were encountered: