nvim-telescope / telescope-project.nvim

MIT License
583 stars 53 forks source link

Can't add project directory if path contains parentheses #146

Open mikemc opened 7 months ago

mikemc commented 7 months ago

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