Match Path function

Have a suggestion for "Everything"? Please post it here.
Post Reply
tot
Posts: 1
Joined: Sat Jan 05, 2019 3:21 pm

Match Path function

Post 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.
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Match Path function

Post by therube »

Tools | Options | General -> Replace forward slashes with backslashes
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

Re: Match Path function

Post by vanisk »

forward_and_backward_slash.jpg
forward_and_backward_slash.jpg (80.79 KiB) Viewed 3537 times

[Edit : Saw therube's reply only after posting this]
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Match Path function

Post 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.
Post Reply