junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
64.3k stars 2.38k forks source link

Change the full path logic for Windows to include backslash. #3820

Closed Konstantin-Glukhov closed 4 months ago

Konstantin-Glukhov commented 4 months ago

On Windows paths starting with "\" are prepended with the value of "cwd", which does not make sense. This commit to address this issue and treat paths starting with "\" the same way as "^[A-Z]:\".

junegunn commented 4 months ago

What are the examples of paths starting with \?

Konstantin-Glukhov commented 4 months ago

\dir1\dir2\file.txt \\Server1\MountPoint\dir1\dir2\file.txt

I tested the change with all cases (including on Linux). It seems working fine.

junegunn commented 4 months ago

Merged, thanks!

Konstantin-Glukhov commented 4 months ago

Thank you for a quick review!