Skip to content
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

Possible to add new lines in detailed description? #10

Closed
peterjuras opened this issue May 7, 2020 · 4 comments
Closed

Possible to add new lines in detailed description? #10

peterjuras opened this issue May 7, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@peterjuras
Copy link

First of all, thanks for creating this extension, it adds a lot of value to my workflow! 🎉 🙏

I wanted to ask whether it is possible to add new lines in the detailed description prompt, since I currently always have to git commit --amend afterwards to format it correctly in case I want to have new lines in between some parts.

I understand that Visual Studio Code might not allow for a multi-line prompt (I didn't check), but how about adding an identifier which translates into a new line in the commit message, e.g. \n?

@vivaxy
Copy link
Owner

vivaxy commented May 7, 2020

Thank you for your feedback.

I think there is a workaround: disabling autoCommit.

The workflow will be:

  1. Open VSCode Conventional Commits extension, enter messages.
  2. Edit the formatted message in the VSCode Source Control Message box.
  3. Commit by using VSCode command git.commit or click the button in Source Control panel.

I'll try to implement \n as line break soon.

@vivaxy vivaxy added enhancement New feature or request help wanted Extra attention is needed labels May 7, 2020
@peterjuras
Copy link
Author

Thanks this also works well for me! 👍

@DiogoAbu
Copy link

DiogoAbu commented May 9, 2020

Thanks it works for me too, it would be nice if it could force focus the message text input when the message is added.

@vivaxy
Copy link
Owner

vivaxy commented May 10, 2020

@DiogoAbu Thanks for the suggestion, but the VSCode git extension does not provide the API to focus the message input for now.

Edited:

I've tried, when autoCommit is set to false, after the extension, message will be put into the VSCode message input, and the input is focused by default.

@vivaxy vivaxy removed the help wanted Extra attention is needed label May 12, 2020
@vivaxy vivaxy self-assigned this May 12, 2020
@vivaxy vivaxy closed this as completed in 3f5a18e May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants