Skip to content

Feature Request: Display worktree path after hooks execution #46

@MH4GF

Description

@MH4GF

Problem

When using wtp add to create a new worktree, the current output shows the cd guidance before executing hooks. When hooks take a long time to execute, I often forget the worktree name I specified and have to scroll up to find it.

Proposed Solution

Change the output order so that the cd guidance is displayed after hooks execution completes, instead of before.

Current behavior:

Created worktree at: /path/to/worktree
To navigate: wtp cd /path/to/worktree
[... long hook execution ...]

Desired behavior:

Created worktree at: /path/to/worktree
[... long hook execution ...]
To navigate: wtp cd /path/to/worktree

Benefits

  • Users can immediately see which worktree to navigate to without scrolling up
  • Improves UX especially when hooks take significant time to complete
  • The most relevant information appears at the most relevant time (right when you're ready to use it)

Additional Note

I'd be happy to submit a PR for this if you're open to it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions