lyuts / vim-rtags

Vim bindings for rtags, llvm/clang based c++ code indexer.
BSD 2-Clause "Simplified" License
282 stars 56 forks source link

Quoting directory issues #87

Open minijackson opened 6 years ago

minijackson commented 6 years ago

Hi and first of all thank you for your work.

I have a project which is in a directory that contains spaces, and unfortunately, it causes multiple issues with this plugin, ie: following location, completion, and others.

As far as I know, the problem arises from the lack of quoting in the getCurrentLocation function and the parsing of rc's output (like here), but it could be from other places.

I don't know how to parse rc's output reliably so I'm not making a pull request, but I'd be glad to be of help.

minijackson commented 6 years ago

A nice way would be to parse rc's builtin json output using the --json flag, but I don't know about doing that in ViML, and some commands doesn't seem to support json (like -f), which could be a bug.