hrsh7th / cmp-path

nvim-cmp source for path
MIT License
599 stars 55 forks source link

Windows path with space #34

Open tzws opened 2 years ago

tzws commented 2 years ago

for example, there's project under c:\workspace\project 1\src.

When I typing 'tabnew c:\workspace\project ', it won't sugguest 'c:\workspace\project 1', but files under cwd.

When I typing 'tabnew c:\workspace\project\ ', trying to escape the space character, it suggests image

If I type double '\', 'tabnew c:\workspace\project\ ', trying to escape the space character, it suggests nothing. image

this may related to previous issue I mentioned: https://github.com/hrsh7th/cmp-path/issues/31

If I start with nvim -u NONE, type 'tabnew c:/me/ccw/ccw\ ', here use unix path delimiter, and use '\' as space escaper, and press type, it will promots: image

hrsh7th commented 2 years ago

PR welcome

tzws commented 2 years ago

I updated to the latest version. It seems if I start with cwd, using unix directory delimiter and space are handled correctly. But if I start with c: drive, there's some trouble.

5