srmeyers / git-prefix

Visual Studio Code Extension - Prefix commit message with value in branch name.
https://marketplace.visualstudio.com/items?itemName=srmeyers.git-prefix
MIT License
22 stars 14 forks source link

Ability for whitespace characters #4

Closed jkovalchik closed 4 years ago

jkovalchik commented 4 years ago

It would be nice to be able to use newlines (or other whitespace characters for that matter) in the "Replacement" setting so, for instance, a couple newlines could be inserted after the branch ($1) in the commit message.

ddcq commented 4 years ago

I've just submit a pull request with which you'll be able to do something like that. I hope.

srmeyers commented 4 years ago

Git Prefix 1.2.0 is now available with a new replacementIsFunction option. Check this option, and set the Replacement to something like `(${p1})\n\n`