I built a filter like this:
ext:txt;md;html;htm;ahk;ini;py;cmd;bat;ps1;chm; C:\Users\|D:\ !"\.vscode" !"Vim\" !"RECYCLE.BIN" utf8content:
Results:No files containing keywords were found.
or this, and then type "utf8content:keyword" in the search:
ext:txt;md;html;htm;ahk;ini;py;cmd;bat;ps1;chm; C:\Users\|D:\ !"\.vscode" !"Vim\" !"RECYCLE.BIN"
Result: Program will search all files, ignoring specified path parameters.
Now I paste content of the first filter into everything input through quick hot-string function of IME to correctly find the file containing keyword. I hope es can directly support such filter search. That would be great.
[solved]Content search does not work in the filter
[solved]Content search does not work in the filter
Last edited by telanx on Thu Jul 23, 2020 11:26 am, edited 1 time in total.
Re: Content search does not work in the filter
Assuming "es" means Everything Search and not the commandline tool ES.exe :
That is possible. Just add a placeholder variable to your filter query.
Code: Select all
Search = ext:txt;md;html;htm;ahk;ini;py;cmd;bat;ps1;chm; C:\Users\|D:\ !"\.vscode" !"Vim\" !"RECYCLE.BIN" utf8content:myquery:
Macro = code<myquery>
Now you can enable your filter and search for "my text"
OR: enter the query code:"my text"
Re: Content search does not work in the filter
Yes! That's what I mean!!! I didn't expect this kind of syntax.NotNull wrote: ↑Thu Jul 23, 2020 10:11 amAssuming "es" means Everything Search and not the commandline tool ES.exe :
That is possible. Just add a placeholder variable to your filter query.("myquery" could be (almost) any text you like; I often use %1 )Code: Select all
Search = ext:txt;md;html;htm;ahk;ini;py;cmd;bat;ps1;chm; C:\Users\|D:\ !"\.vscode" !"Vim\" !"RECYCLE.BIN" utf8content:myquery: Macro = code<myquery>
Now you can enable your filter and search for "my text"
OR: enter the query code:"my text"
Thank you so much for your explanation!
Re: [solved]Content search does not work in the filter
I think I found the answer.
Only one variable can be used in a filter, and the other filters in this filter must use the macro name. A variable can be passed to multiple locations in the search value.
Only one variable can be used in a filter, and the other filters in this filter must use the macro name. A variable can be passed to multiple locations in the search value.
Re: [solved]Content search does not work in the filter
I was asking myself this question too, some time ago.
After research and experimenting, it turned out that Everything will not expand the %2.
Behind the scenes, your query code:pdf foo would be executed as:
Code: Select all
nofiltercase:nofilterpath:nofilterwholeword:nofilterdiacritics:nofilterregex:<ext:pdf utf8content:%2: > foo
TLDR: No.
Re: [solved]Content search does not work in the filter
Anyway, Thanks for your thoughts, good luckNotNull wrote: ↑Thu Jul 23, 2020 3:43 pmI was asking myself this question too, some time ago.
After research and experimenting, it turned out that Everything will not expand the %2.
Behind the scenes, your query code:pdf foo would be executed as:Code: Select all
nofiltercase:nofilterpath:nofilterwholeword:nofilterdiacritics:nofilterregex:<ext:pdf utf8content:%2: > foo
TLDR: No.