Page 1 of 1

Match Path function

Posted: Sat Jan 05, 2019 3:28 pm
by tot
Could you match paths that contain the / directory-file separation character as well (not only the Windows default path separator \)?

I know that Windows doesn't use / but it would be handy when searching for paths included in some source files that are intended to be cross platform.

For example the next 2 would yield the same search output:
gs\scripts\main_map.js
gs/scripts/main_map.js

I see no problem since \ cannot be used in the name of a directory or file anyway.

Re: Match Path function

Posted: Sat Jan 05, 2019 4:01 pm
by therube
Tools | Options | General -> Replace forward slashes with backslashes

Re: Match Path function

Posted: Sat Jan 05, 2019 4:09 pm
by vanisk
forward_and_backward_slash.jpg

[Edit : Saw therube's reply only after posting this]

Re: Match Path function

Posted: Tue Jan 08, 2019 1:38 am
by void
I have enabled Tools | Options | General -> Replace forward slashes with backslashes by default for the next major release.

The next major version of Everything will also automatically convert forward slashes to backslashes when used in an absolute path.
Tools | Options | General -> Replace forward slashes with backslashes will not need to be set.

eg: c:/windows/

This will not treat //server/share as an absolute path, so you will still need to use \\server\share here.

This will not automatically convert partial paths.
Tools | Options | General -> Replace forward slashes with backslashes will still need to be set to convert the following:

eg: /windows/

Also for the next major release, scheme names will also ignore the Tools | Options | General -> Replace forward slashes with backslashes setting

For example, searching for:
http://www.voidtools.com
will always search for:
http://www.voidtools.com and never http:\\www.voidtools.com

nopath:/download
can also be used to temporarily disable "Replace forward slashes with backslashes" and match https://www.voidtools.com/downloads

Thanks for the suggestion.