Skip to content

Feedback and suggestions #101

Closed
Closed

Description

@pwntester

Hi

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

Thanks again for the project!

Activity

  1. max-sixty commented on Dec 8, 2025

    @max-sixty
    Owner

    thanks for the issue @pwntester !

    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...

  2. max-sixty commented on Dec 8, 2025

    @max-sixty
    Owner

    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...

  3. pwntester commented on Dec 9, 2025

    @pwntester
    Author

    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

  4. max-sixty commented on Dec 10, 2025

    @max-sixty
    Owner

    great, check out #118

  5. max-sixty commented on Dec 10, 2025

    @max-sixty
    Owner

    @pwntester I'll close this as I think it's done, but please continue with more ideas!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions