cmp-path icon indicating copy to clipboard operation
cmp-path copied to clipboard

Windows path with space

Open tzws opened this issue 3 years ago • 2 comments

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

tzws avatar Jan 17 '22 13:01 tzws

PR welcome

hrsh7th avatar Jan 17 '22 13:01 hrsh7th

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

tzws avatar Jan 18 '22 10:01 tzws