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 » Sat Jan 05, 2019 3:28 pm

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: 2332
Joined: Thu Sep 03, 2009 6:48 pm

Re: Match Path function

Post by therube » Sat Jan 05, 2019 4:01 pm

Tools | Options | General -> Replace forward slashes with backslashes

vanisk
Posts: 149
Joined: Sat Oct 27, 2018 11:33 am

Re: Match Path function

Post by vanisk » Sat Jan 05, 2019 4:09 pm

forward_and_backward_slash.jpg

[Edit : Saw therube's reply only after posting this]
You do not have the required permissions to view the files attached to this post.

void
Site Admin
Posts: 4894
Joined: Fri Oct 16, 2009 11:31 pm

Re: Match Path function

Post by void » Tue Jan 08, 2019 1:38 am

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