Skip to content

cannot switch worktree when space in directory name #114

Description

@denniswiersma

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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