Search with preprocessor no longer works in 1.5.0.1385

Discussion related to "Everything" 1.5 Alpha.
Post Reply
horst.epp
Posts: 1456
Joined: Fri Apr 04, 2014 3:24 pm

Search with preprocessor no longer works in 1.5.0.1385

Post by horst.epp »

The following search from Total Commander no longer works after the update.
It should find all occurrences of the simple filename across the system.

C:\Tools\Everything\Everything64.exe -s nopath:exact:#quote:#[basename:"%S1"#]:

%S1 stands for the full path of one selected filename.

I found another simple solution, but for interest, what is wrong with this ?
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search with preprocessor no longer works in 1.5.0.1385

Post by void »

Thank you for the issue report horst.epp,



There's major changes to the preprocessor #[function:...#]: syntax in Everything 1.5.0.1384a.

#[function:...#]: now requires #,: to separate parameters.

For example:
#[text:value#,:YYYY-MM-DD#]:


#[function:...#]: will now treat quotes (") literally.



#[function:...#]: is for rewriting complete text.
[function:...] is for rewriting terms.



I am aware these changes will break a lot of existing searches.
However, I was not happy with the old preprocessor syntax and it need changing.
I would rather do this now in alpha than later.



Please don't use #[basename:#]: from the command line.
Please use [basename:]

C:\Tools\Everything\Everything64.exe -s nopath:exact:[basename:"%S1"]


It's cleaner and you don't have to worry about quoting things.



If you run into any issues with the preprocessor changes, please let me know.
I will be more than happy to get things going with the new syntax.
horst.epp
Posts: 1456
Joined: Fri Apr 04, 2014 3:24 pm

Re: Search with preprocessor no longer works in 1.5.0.1385

Post by horst.epp »

Thanks for the info.
Your example works fine.
I will look for other usages I may have.
Post Reply