You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being using wt for the last week and loving it so far, thanks!
Here are a few ideas that I would find very useful:
Generic hook configuration. I want to link/start/stop devcontainers when I switch to a worktree. This is something that i want to do always if .devcontainer/ exists so instead of having lots of .config/wt.toml around it would be nice to centrilize that logic in .config/worktrunk
Add hook for post-remove so I can clean up devcontainers to bar worktree, I would like to create ../foo.bar but then pwntester/bar branch with the pwntester/ prefix
Add hook for post-remove so I can clean up devcontainers to bar worktree, I would like to create ../foo.bar but then pwntester/bar branch with the pwntester/ prefix
Great, will add. to confirm: this should run post remove on the target (generally main) worktree? rather than pre-remove on the original worktree?
Generic hook configuration. I want to link/start/stop devcontainers when I switch to a worktree. This is something that i want to do always if .devcontainer/ exists so instead of having lots of .config/wt.toml around it would be nice to centrilize that logic in .config/worktrunk
I thought about this...
...do you think folks really want a hook to run on every project though? it's easy to add and wouldn't be that much of an interface bloat. but I worry that it wouldn't get used much, wdyt?
we could add a project_filter field, but also someone can implement that in bash...
I'm implementing a pre-remove hook, because it's much simpler given it's not in the background: #107.
I think it mostly dominates the post-remove, because it can block the removal with a non-zero exit code, and there's no additional info we have post-remove...
Thanks for the pre-remove hook!
As for the generic hooks, they make a lot of sense to me since most of the actions will be shared across repos but I understand that may not be something universal
Activity
max-sixty commentedon Dec 8, 2025
thanks for the issue @pwntester !
Great, will add. to confirm: this should run post remove on the target (generally
main) worktree? rather than pre-remove on the original worktree?I thought about this...
...do you think folks really want a hook to run on every project though? it's easy to add and wouldn't be that much of an interface bloat. but I worry that it wouldn't get used much, wdyt?
we could add a
project_filterfield, but also someone can implement that in bash...max-sixty commentedon Dec 8, 2025
I'm implementing a pre-remove hook, because it's much simpler given it's not in the background: #107.
I think it mostly dominates the post-remove, because it can block the removal with a non-zero exit code, and there's no additional info we have post-remove...
pwntester commentedon Dec 9, 2025
Thanks for the pre-remove hook!
As for the generic hooks, they make a lot of sense to me since most of the actions will be shared across repos but I understand that may not be something universal
max-sixty commentedon Dec 10, 2025
great, check out #118
max-sixty commentedon Dec 10, 2025
@pwntester I'll close this as I think it's done, but please continue with more ideas!
feat(switch): show PR/MR context when checking out with pr:/mr:
feat(switch): display PR/MR context as gutter content
feat(switch): display PR/MR context when checking out (#782)
fix(gitea): key the tea api error shape on the envelope, not on a non…
fix(gitea): key tea api errors on the HTTP status line, not the respo…
fix(switch): name a PR base under its remote when it has no local bra…