File name searching with Everything

Have a suggestion for "Everything"? Please post it here.
Post Reply
Jakov93
Posts: 15
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: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: File name searching with Everything

Post by void »

Jakov93
Posts: 15
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: 15
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: 16751
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: 15
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: 16751
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:

"C:\Program Files\Everything\Everything64.exe" -s #[regexreplace:#[stem:"%1"#]:,"\d+\. ",""#]:
Jakov93
Posts: 15
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
Post Reply