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 non-default comment character #105

Closed connorjclark closed 1 year ago

connorjclark commented 1 year ago

# is the default comment character, but for reasons I've configured mine to be ; (git config core.commentchar). The plugin reformats what should be ignored (given via the git commit template) into separate lines.

ex:

.....

; Please enter the commit message for your changes. Lines starting
; with ';' will be ignored, and an empty message aborts the commit.
;
; Date:      Thu Aug 3 01:41:30 2023 -0700
;
; interactive rebase in progress; onto adf05b8cf
; Last commands done (5 commands done):
;    pick ed0d04620 chore: bump version to alpha 117
;    reword 24593f409 feat(zc): split saves into individual files
; Next commands to do (5 remaining commands):
;    pick 4ded4616f fix(zc): allow canceling delete/copy save with ESC
;    pick b51f3a765 refactor(zc): remove support of .dat# when loading save files
; You are currently editing a commit while rebasing branch 'split-saves' on 'adf05b8cf'.
;
; Changes to be committed:
;   modified:   src/base/emscripten_utils.cpp
;   modified:   src/base/emscripten_utils.h
;   modified:   src/base/packfile.h
;   modified:   src/base/util.cpp
;   modified:   src/base/util.h
;   modified:   src/base/zdefs.h
;   modified:   src/gamedata.cpp
;   modified:   src/zc/ending.cpp
;   modified:   src/zc/replay.cpp
;   modified:   src/zc/replay.h
;   modified:   src/zc/saves.cpp
;   modified:   src/zc/saves.h
;   modified:   src/zc/title.cpp
;   modified:   src/zc/zc_sys.cpp
;   modified:   src/zc/zelda.cpp
;   modified:   src/zc/zelda.h
;
.....

; Please enter the commit message for your changes. Lines starting ;
with ';' will be ignored, and an empty message aborts the commit. ; ;
Date:      Thu Aug 3 01:41:30 2023 -0700 ; ; interactive rebase in
progress; onto adf05b8cf ; Last commands done (5 commands done): ;   
pick ed0d04620 chore: bump version to alpha 117 ;    reword 24593f409
feat(zc): split saves into individual files ; Next commands to do (5
remaining commands): ;    pick 4ded4616f fix(zc): allow canceling
delete/copy save with ESC ;    pick b51f3a765 refactor(zc): remove
support of .dat# when loading save files ; You are currently editing a
commit while rebasing branch 'split-saves' on 'adf05b8cf'. ; ; Changes
to be committed: ;  modified:   src/base/emscripten_utils.cpp ; modified:
  src/base/emscripten_utils.h ; modified:   src/base/packfile.h
;   modified:   src/base/util.cpp ; modified:   src/base/util.h
;   modified:   src/base/zdefs.h ;  modified:   src/gamedata.cpp
;   modified:   src/zc/ending.cpp ; modified:   src/zc/replay.cpp
;   modified:   src/zc/replay.h ;   modified:   src/zc/saves.cpp ;  modified:
  src/zc/saves.h ;  modified:   src/zc/title.cpp ;  modified:  
src/zc/zc_sys.cpp ; modified:   src/zc/zelda.cpp ;  modified:  
src/zc/zelda.h ;
bendera commented 1 year ago

Hi,

Wrong repo, this is another extension. :) At least, I haven't implemented this feature yet in this project. Try the protectedPatterns option, I hope it will help.

connorjclark commented 1 year ago

Oops, I got lost in your list of repos. Lots of cool stuff there :)

I did mean this one: https://github.com/bendera/vscode-commit-message-formatter

protectedPatterns worked, thanks! Loving this extension, so good

bendera commented 1 year ago

Thanks, I'm glad you like it. :)