telescope-project.nvim icon indicating copy to clipboard operation
telescope-project.nvim copied to clipboard

Can't add project directory if path contains parentheses

Open mikemc opened this issue 4 months ago • 0 comments

I would not normally have parentheses in a path, but I have work within a Dropbox folder on my Mac which has parentheses in the folder name (created by Dropbox itself) to distinguish between my work and personal accounts.

When I use the keyboard shortcut to create a project from within the following path (which is a git repo), '/Users/michael/Dropbox (MIT)/work/differential-abundance-theory', telescope-project creates a project with the path '(MIT)/work/differential-abundance-theory', which doesn't exist. The entry in telescope-projects.txt is

differential-abundance-theory=zsh:1: no matches found: (MIT)/work/differential-abundance-theory=w0=1=1

If I try to create a project within a test directory with path '/Users/michael/projects/neovim/test (dir)', I also get a non-functional project added, and the entry in telescope-projects.txt is

zsh:1: number expected=zsh:1: number expected=w0=1=1

mikemc avatar Feb 17 '24 15:02 mikemc