File name searching with Everything

Have a suggestion for "Everything"? Please post it here.
Post Reply
Jakov93
Posts: 21
Joined: Fri Mar 01, 2024 4:33 pm

File name searching with Everything

Post by Jakov93 »

Hi,
I want to make a suggestion and I didn't know if it's possible in version alpha 1.5
My suggestion is searching for file name with everything by making right click on file name in windows then from context menu "Search with Everything", so the Everything will take the file name and search for it in computer.
Thanks
void
Developer
Posts: 17276
Joined: Fri Oct 16, 2009 11:31 pm

Re: File name searching with Everything

Post by void »

Jakov93
Posts: 21
Joined: Fri Mar 01, 2024 4:33 pm

Re: File name searching with Everything

Post by Jakov93 »

Thanks void
I found some issues because it search for (filepath + filename + extension) although using -filename parameter
Image
After searching in this forum, I found using -name-part parameter to search for filename only without filepath and extension
Here is the registry code

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\Shell\Search FileName in Everything...]
"icon"=" C:\\Program Files\\Everything\\Everything64.exe,0"

[HKEY_CLASSES_ROOT\*\Shell\Search FileName in Everything...\command]
@="\"C:\\Program Files\\Everything\\Everything64.exe\"  -name-part \"%1\" -select \"%1\""
Thanks
Jakov93
Posts: 21
Joined: Fri Mar 01, 2024 4:33 pm

Re: File name searching with Everything

Post by Jakov93 »

Dear void,
The current code

Code: Select all

"C:\Program Files\Everything\Everything64.exe" -name-part "%1" -select "%1"
Suppose my filename is Hello.txt
The code will look for "Hello.txt"
So how to search for Hello only without quotation and extension?
Because the current code search for exact name, but I want similar file name plus minus a word or a character.
Thanks
void
Developer
Posts: 17276
Joined: Fri Oct 16, 2009 11:31 pm

Re: File name searching with Everything

Post by void »

"C:\Program Files\Everything\Everything64.exe" -s [stem:"%1"]


[stem:]
Jakov93
Posts: 21
Joined: Fri Mar 01, 2024 4:33 pm

Re: File name searching with Everything

Post by Jakov93 »

Thanks so much void
But what for quotation marks? are they affect search results?
Dear void,
My file name is
How to Write a Systematic Review.mp4
I have the same file under the name
5. How to Write a Systematic Review.mp4
When I search, it search for exact name which does find the second file (5. How to Write a Systematic Review.mp4), although match case and match whole words are disabled. Furthermore, I enabled the option Ignore punctuation but not fixed. It require deleting 5. To find the second file.
So how to resolve that? with my special thanks.
void
Developer
Posts: 17276
Joined: Fri Oct 16, 2009 11:31 pm

Re: File name searching with Everything

Post by void »

%1 is replaced with your filename.
For example: C:\users\user\documents\5. How to Write a Systematic Review.mp4

[stem:"%1"]
is then replaced with:
[stem:"C:\users\user\documents\5. How to Write a Systematic Review.mp4"]
which is processed as:
"5. How to Write a Systematic Review.mp4"



If you don't want the quotes, use:

"C:\Program Files\Everything\Everything64.exe" -s #stem:"%1"




To strip the digit. space prefix:

edit:
"C:\Program Files\Everything\Everything64.exe" -s [regexreplace:[stem:"%1"],"\d+\. ",""]


old:
"C:\Program Files\Everything\Everything64.exe" -s #[regexreplace:#[stem:"%1"#]:,"\d+\. ",""#]:
Jakov93
Posts: 21
Joined: Fri Mar 01, 2024 4:33 pm

Re: File name searching with Everything

Post by Jakov93 »

void wrote: Fri Sep 13, 2024 3:30 am %1 is replaced with your filename.
Dear void,
This is not practical because I can't go to Regedit every time when I want to search as you know the file names is not static.
void wrote: Fri Sep 13, 2024 3:30 am If you don't want the quotes, use:
"C:\Program Files\Everything\Everything64.exe" -s #stem:"%1"
Ok the quotes not appeared but it search for Filepath + Name + extension as following
Video Downloader\5. How to Write a Systematic Review.mp4
void wrote: Fri Sep 13, 2024 3:30 am To strip the digit. space prefix:
"C:\Program Files\Everything\Everything64.exe" -s #[regexreplace:#[stem:"%1"#]:,"\d+\. ",""#]:
I think this is ok now as both files appear in search results
How to Write a Systematic Review
5. How to Write a Systematic Review

Thanks again void
Best Regards
Jakov93
Posts: 21
Joined: Fri Mar 01, 2024 4:33 pm

Re: File name searching with Everything

Post by Jakov93 »

void wrote: Fri Sep 13, 2024 3:30 am
"C:\Program Files\Everything\Everything64.exe" -s #[regexreplace:#[stem:"%1"#]:,"\d+\. ",""#]:
Dear void,
The above code works perfectly since 9/2024
Yesterday, I updated my Everything to last version of alpha (Everything-1.5.0.1391a.x64)
The above code didn't work perfectly now, see screenshot
Image
So what happened to make the above code malfunctioned?
It didn't remove the prefix digit dot space and add ,\d+\. , to the end
Please how to fix it?
Thanks
therube
Posts: 5074
Joined: Thu Sep 03, 2009 6:48 pm

Re: File name searching with Everything

Post by therube »

(I'll just confirm the change.
Works in 1382, fails in 1391.

#stem: still works, so it must be something with #regexreplace:.
Either it broke or the syntax changed?)
void
Developer
Posts: 17276
Joined: Fri Oct 16, 2009 11:31 pm

Re: File name searching with Everything

Post by void »

There was a #[function:...#]: syntax change in 1383a

Please try:

"C:\Program Files\Everything\Everything64.exe" -s [regexreplace:[stem:"%1"],"\d+\. ",""]
Jakov93
Posts: 21
Joined: Fri Mar 01, 2024 4:33 pm

Re: File name searching with Everything

Post by Jakov93 »

void wrote: Fri Jan 03, 2025 10:13 pm Please try:
"C:\Program Files\Everything\Everything64.exe" -s [regexreplace:[stem:"%1"],"\d+\. ",""]
Thanks so much void
It works fine but the file name is flanked by quotation marks ""
I removed the double quotation marks from the end of your code, but didn't fix it
I want to keep the stem of the file name without any extra characters or symbols.
Thanks again
void
Developer
Posts: 17276
Joined: Fri Oct 16, 2009 11:31 pm

Re: File name searching with Everything

Post by void »

[stem:...] will use quotes if there are spaces in the output.

Please try:

Code: Select all

"C:\Program Files\Everything\Everything64.exe" -s #[regexreplace:#[stem:%1#]:#,:\d+\. #,:#]:
Jakov93
Posts: 21
Joined: Fri Mar 01, 2024 4:33 pm

Re: File name searching with Everything

Post by Jakov93 »

void wrote: Sat Jan 04, 2025 7:11 am Please try:

Code: Select all

"C:\Program Files\Everything\Everything64.exe" -s #[regexreplace:#[stem:%1#]:#,:\d+\. #,:#]:
Fantastic
Good job
Thanks so much bro
It works perfectly
Dear void, can I face the same problem in the next version (require modification) or the problem is solved permanently ?
Thanks again for your help.
void
Developer
Posts: 17276
Joined: Fri Oct 16, 2009 11:31 pm

Re: File name searching with Everything

Post by void »

The
#[regexreplace:#[stem:%1#]:#,:\d+\. #,:#]:
style syntax is not going to change again in Everything 1.5.
Jakov93
Posts: 21
Joined: Fri Mar 01, 2024 4:33 pm

Re: File name searching with Everything

Post by Jakov93 »

void wrote: Sat Jan 04, 2025 7:51 am The
#[regexreplace:#[stem:%1#]:#,:\d+\. #,:#]:
style syntax is not going to change again in Everything 1.5.
Ok, good news
Thanks again
Best Regards
Post Reply