[help] path match switch

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
iamqz
Posts: 29
Joined: Wed Oct 05, 2022 2:34 pm

[help] path match switch

Post by iamqz »

for example, i search with:
path:<a b c d>
to seach file like c:\a\b\c\d\e.txt

but i want to simplify it to:
pathsearch: a b c d

my question is : is there something like "pathsearch:" to enable path match ? instead of by check "match path" option from search menu bar
thanks! 🥰
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: [help] path match switch

Post by void »

For Everything 1.4, please try something like:

\a \b \c \d

Using a path separator will enable full path matching for that search term.
This will only work if the subpaths start with a, b, c and d



Everything 1.5 will have the option to enable search modifiers globally with ::

For example:

::path: a b c d



Everything 1.5 also has \\ to partially match subpaths:
a\\b\\c\\d
iamqz
Posts: 29
Joined: Wed Oct 05, 2022 2:34 pm

Re: [help] path match switch

Post by iamqz »

wow! :: is exactly what i want !
good job!
thank you very very much!🥰🥰
happy lunar new year!🎈
iamqz
Posts: 29
Joined: Wed Oct 05, 2022 2:34 pm

Re: [help] path match switch

Post by iamqz »

It seems that :: do not work when used in macro of filter ? 😲
i have a filter , "search" is:
::path:
and macro is called tt
but
tt: a b c d
is not same as
::path: a b c d
😲
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: [help] path match switch

Post by void »

Filters are expanded in their own scope.

::path: will only apply to the filter search.



Instead of using a filter, please try defining a macro:
  • In Everything, from the Search menu, click Organize filters.
  • Delete your ::path: filter.
  • Click OK.
  • Copy and paste the following into your Everything search box:
    /define tt=::path:
  • Press ENTER in your Everything search box.
  • If successful, tt=::path: is shown in the status bar for a few seconds.
  • tt: is now replaced with: ::path:


Macros
iamqz
Posts: 29
Joined: Wed Oct 05, 2022 2:34 pm

Re: [help] path match switch

Post by iamqz »

wow! I got it !! thank U!🥰
now i know more about difference between filter and macro, thank you!🥰
cosidering that , i think it is good to add "Add Macro" menu for /define command
😄
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: [help] path match switch

Post by void »

"Add to macros" and "Organize macros" are on my TODO list.
Thank you for the suggestion.
Post Reply