bendera / vscode-commit-message-editor

Edit commit messages in a convenient way.
https://marketplace.visualstudio.com/items?itemName=adam-bender.commit-message-editor
MIT License
73 stars 13 forks source link

Support for indentation of a whole multiline text #53

Open LuWa-at-work opened 2 years ago

LuWa-at-work commented 2 years ago

I usually structure my message-body something like this:

* __What was the Problem?__:
  * problem 1
  * problem 2
    * problem 2.1
  * problem 3 
* __What changed?__:
  * change 1
  * change 2
    * change 2.1
  * change 3 

so i defined 2 multilines (with the workaround mentioned in https://github.com/bendera/vscode-commit-message-editor/issues/52):

{
      "label": "Problem",
      "name": "problem",
      "type": "text",
      "prefix": "* __What was the Problem?__\n",
      "suffix": "\n",
      "multiline": true,
      "lines": 10
    },
    {
      "label": "Changes",
      "name": "changes",
      "type": "text",
      "prefix": " * __What changed?__ \n",
      "suffix": "\n",
      "multiline": true,
      "lines": 10
    },

The only issue i have is that i have to manually indent every line. Current input in to the "Problem field":

  * problem 1
  * problem 2
    * problem 2.1
  * problem 3 

An "indent"-option for multilines would be nice: so if i set "indent": 2 every line is shifted in by two spaces so i can input this into the "Problem field":

* problem 1
* problem 2
  * problem 2.1
* problem 3 
bendera commented 2 years ago

That's a valid use case which I didn't expect. I'll figure out something.