feat(git): worktree-aware branch switching (Telescope), repo conversion, explorer branch chip #9

Merged
sam_oneal merged 1 commits from feat/git-worktree into main 2026-09-20 19:25:51 +00:00
Owner
  • New lua/config/git-worktree.lua: git plumbing (vim.system, async fetch),
    worktree/local/remote branch discovery, ensure_worktree (pulls remote-only
    branches down as tracking worktrees), switch, convert (single-checkout →
    worktree layout, keeps every local branch, --keep=),
    remove/new/fetch/refresh actions, and a Telescope picker that highlights
    which branches are checked out on the machine.
  • Worktrees live under /.worktrees// (/ → -), with
    icons via nr2char so raw PUA chars stay out of the file.
  • New lua/plugins/worktree.lua: lazy keys gw (branches), gW
    (worktrees), gC (convert); registered via the telescope spec.
  • explorer now titles itself with project · branch · worktree count.
  • README: document the keys, picker actions, and layout.
- New lua/config/git-worktree.lua: git plumbing (vim.system, async fetch), worktree/local/remote branch discovery, ensure_worktree (pulls remote-only branches down as tracking worktrees), switch, convert (single-checkout → worktree layout, keeps every local branch, --keep=<branch>), remove/new/fetch/refresh actions, and a Telescope picker that highlights which branches are checked out on the machine. - Worktrees live under <parent>/.worktrees/<project>/<branch> (/ → -), with icons via nr2char so raw PUA chars stay out of the file. - New lua/plugins/worktree.lua: lazy keys <leader>gw (branches), <leader>gW (worktrees), <leader>gC (convert); registered via the telescope spec. - <C-e> explorer now titles itself with project · branch · worktree count. - README: document the keys, picker actions, and layout.
sam_oneal added 1 commit 2026-09-20 19:25:45 +00:00
- New lua/config/git-worktree.lua: git plumbing (vim.system, async fetch),
  worktree/local/remote branch discovery, ensure_worktree (pulls remote-only
  branches down as tracking worktrees), switch, convert (single-checkout →
  worktree layout, keeps every local branch, --keep=<branch>),
  remove/new/fetch/refresh actions, and a Telescope picker that highlights
  which branches are checked out on the machine.
- Worktrees live under <parent>/.worktrees/<project>/<branch> (/ → -), with
  icons via nr2char so raw PUA chars stay out of the file.
- New lua/plugins/worktree.lua: lazy keys <leader>gw (branches), <leader>gW
  (worktrees), <leader>gC (convert); registered via the telescope spec.
- <C-e> explorer now titles itself with project · branch · worktree count.
- README: document the keys, picker actions, and layout.
sam_oneal merged commit 0d42c43912 into main 2026-09-20 19:25:51 +00:00
sam_oneal deleted branch feat/git-worktree 2026-09-20 19:25:52 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam_oneal/nvim-config#9