Skip to content

feat: add on_before_switch and on_before_remove hooks#11

Open
x1unix wants to merge 5 commits intoJuksuu:mainfrom
x1unix:feat/on-before-switch
Open

feat: add on_before_switch and on_before_remove hooks#11
x1unix wants to merge 5 commits intoJuksuu:mainfrom
x1unix:feat/on-before-switch

Conversation

@x1unix
Copy link
Copy Markdown

@x1unix x1unix commented Apr 4, 2026

This PR adds several new hooks:

  • on_before_switch - runs before a worktree switch is completed.
  • on_before_remove - runs before a worktree is being deleted.

These hooks allows to implement features like session persistence and overriding worktree switch process.

Closes #10

Signed-off-by: x1unix <9203548+x1unix@users.noreply.github.com>
@x1unix x1unix force-pushed the feat/on-before-switch branch from eee88e0 to 1c98ac6 Compare April 4, 2026 23:20
x1unix added 3 commits April 4, 2026 19:30
Signed-off-by: x1unix <9203548+x1unix@users.noreply.github.com>
Signed-off-by: x1unix <9203548+x1unix@users.noreply.github.com>
Signed-off-by: x1unix <9203548+x1unix@users.noreply.github.com>
@x1unix x1unix changed the title feat: add on_before_switch hook feat: add on_before_switch and on_before_remove hooks Apr 5, 2026
Signed-off-by: x1unix <9203548+x1unix@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

Feature request: add on_before_switch hook

1 participant