neo-tree.nvim icon indicating copy to clipboard operation
neo-tree.nvim copied to clipboard

FEATURE: support `prepare-commit-msg` git hook

Open hacker-hackman opened this issue 1 year ago • 2 comments

Did you check the docs?

  • [X] I have read all the docs.

Is your feature request related to a problem? Please describe.

When I set up prepare-commit-msg hook for OpenCommit tool and use gc mapping in the opened git status I get an empty Commit message input window.

Describe the solution you'd like.

I want the prepared by OpenCommit commit message would appear in the opened Commit message input window after using gc mapping so I could edit the message and submit a commit.

Describe alternatives you've considered.

No response

Additional Context

No response

hacker-hackman avatar Sep 27 '24 09:09 hacker-hackman

tried a preliminary implementation here: https://github.com/pynappo/neo-tree.nvim/tree/1569-prepare-commit-hook but it's fairly hacky (and it doesn't remove the line the hook adds to .git/COMMIT_EDITMSG so multiple commits will pile up the lines in that file), may revisit at some point or you could try to revise it for a PR yourself, or make it your own custom command.

pynappo avatar Jan 02 '25 11:01 pynappo

Cool :-) I had already forgotten about that feature request. Thanks for doing steps towards it!

hacker-hackman avatar Jan 03 '25 06:01 hacker-hackman