Commit Graph

2 Commits

Author SHA1 Message Date
unkin-agent b15c8b49d3 fix(nvim): carry buffers from every sibling worktree
Buffer migration keyed off the active buffer's repo, so a switch made from
an unrelated buffer moved nothing and said nothing.

- Match each buffer against the target's own worktree list, longest root first.
- Warn when open buffers all live outside the repository.
- Capture and restore the cursor per window, not once from the first one.
- Clamp restored cursors to a line the destination buffer has.

Signed-off-by: unkin-agent <unkin-agent@unkin.net>
2026-09-08 23:18:00 +10:00
unkin-agent 05a642b7a9 feat(nvim): add git worktree picker that follows open buffers
Adds a telescope picker over 'git worktree list --porcelain'. Selecting an
entry cds to that worktree and re-points every open buffer at the same
relative path there, keeping cursor position and refusing to clobber
unsaved work.

Signed-off-by: unkin-agent <unkin-agent@unkin.net>
2026-09-05 11:19:42 +10:00