Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional "pre" hooks #101

Open
halfdan opened this issue Oct 19, 2022 · 1 comment
Open

Add additional "pre" hooks #101

halfdan opened this issue Oct 19, 2022 · 1 comment

Comments

@halfdan
Copy link

halfdan commented Oct 19, 2022

I'm using the hooks to handle docker-composing up / down containers as I create or switch between worktrees. The only issue I have is that there's no pre-delete hook that would allow me to run docker-compose down. I imagine this would be useful for other things as well to clean up resources when a worktree is removed.

My proposal would be to add an additional Deleting hook that receives the path of the to be deleted worktree.

@ngntrpy
Copy link

ngntrpy commented Oct 31, 2023

i also feel the need for this pre hooks. i'm using tpope's obsession plugin and don't want it to track when switching worktree. i've tinker a bit and gonna make pr. please give feedback, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants