git-prefix icon indicating copy to clipboard operation
git-prefix copied to clipboard

Multiple prefixes

Open GeiOoo opened this issue 2 years ago • 1 comments

Desciption

You can fill the commit message with endless prefixes when you trigger the action multiple times. It would be great to avoid this behavior.

Reproduce

  1. Empty commit message
  2. click button to apply commit message prefix
  3. repeat clicking the button multiple times
  4. the commit message is filled with multiple prefixes image

Expected behavior

The commit message prefix should only exist a single time in the commit message. Either check if the prefix exists already or clear the current commit message befor the prefix is applied.

GeiOoo avatar Dec 02 '22 09:12 GeiOoo

I have this addressed in #27

j0be avatar Sep 29 '23 20:09 j0be