ThePrimeagen / git-worktree.nvim

704 stars 124 forks source link

cannot switch worktree when space in directory name #114

Open denniswiersma opened 11 months ago

denniswiersma commented 11 months ago

I am a Mac user and store files in iCloud Drive. MacOS stores iCloud Drive files at /Users/denniswiersma/Library/Mobile Documents/com~apple~CloudDocs/

I have a (bare) git repository at /Users/denniswiersma/Library/Mobile Documents/com~apple~CloudDocs/Documents/path/to/repo.git

when I run this keymap to switch to a different worktree:

vim.keymap.set(
    "n",
    "<leader>sw",
    "<cmd>lua require('telescope').extensions.git_worktree.git_worktrees()<cr>"
)

I get the following error for every worktree I select: CleanShot 2023-11-06 at 11 19 39@2x

The first line of this error leads me to believe it doesn't like the space in /Mobile Documents/ very much.

GitMurf commented 9 months ago

I have the same issue on Windows