Nice piece of software!
been tinkering with it with the hope of replacing the cpu hungry windows search but i'm still unable to achieve one thing - search for file content (text in pdf)
For now i have set a shortcut (show window hotkey) to open within the folder so the search bar inserts the path automatically. With my limited knowledge of regex i could still type .* then follow by keywords to search using wildcards.
But i am stuck with how to search for file content, like what should i type after the path. Any help is greatly appreciated!
Searching file content in specific folder
-
- Posts: 3
- Joined: Tue Dec 10, 2024 10:17 am
Re: Searching file content in specific folder
To search file content, please try the content: search function.
For example, to search for the content "To be or not to be" in pdf files, modified this year, search for:
ext:pdf dm:thisyear content:"To be or not to be"
Note: File content is not indexed. Searching file content will be very slow.
For the best performance, combine the content: search with other search filters.
Please try the Advanced Search under the search menu and set the "A word or phrase in the file" field.
For the best performance, set as many fields in the Advanced Search as possible.
For example, to search for the content "To be or not to be" in pdf files, modified this year, search for:
ext:pdf dm:thisyear content:"To be or not to be"
Note: File content is not indexed. Searching file content will be very slow.
For the best performance, combine the content: search with other search filters.
Please try the Advanced Search under the search menu and set the "A word or phrase in the file" field.
For the best performance, set as many fields in the Advanced Search as possible.
-
- Posts: 3
- Joined: Tue Dec 10, 2024 10:17 am
Re: Searching file content in specific folder
thanks, i thought 1.5 introduced index file content and i have set it to include only files - *.docx ; *.doc ; *.xls ; *.xlsx ; *.txt ; *.pdf ; *.msg ; *.html
also, it suddenly works after trying advanced search for once, feels like it "unlocked" something and right click choosing search everything no longer shows the path as ^C:\\ but "C:\ now.
sample - "C:\Users\XXX\XX\XXX\" content:012251
Magnificent!
one last thing is will it be possible to prefill the search? As in right click within a folder - click search everything 1.5a - new window pops up with path - autofill after the path with "content:" in the search bar
also, it suddenly works after trying advanced search for once, feels like it "unlocked" something and right click choosing search everything no longer shows the path as ^C:\\ but "C:\ now.
sample - "C:\Users\XXX\XX\XXX\" content:012251
Magnificent!
one last thing is will it be possible to prefill the search? As in right click within a folder - click search everything 1.5a - new window pops up with path - autofill after the path with "content:" in the search bar
Re: Searching file content in specific folder
Enabling Regular expressions under the Search menu will cause this.it suddenly works after trying advanced search for once, feels like it "unlocked" something and right click choosing search everything no longer shows the path as ^C:\\ but "C:\ now.
REGEX is shown in the status bar on the right.
To create a "Search content in Everything" context menu item:one last thing is will it be possible to prefill the search? As in right click within a folder - click search everything 1.5a - new window pops up with path - autofill after the path with "content:" in the search bar
- From the Start menu, search for:
regedit
- Right click Registry Editor and click Run as administrator.
- Navigate to:
HKEY_CLASSES_ROOT\Folder\shell
- Create the following key:
Search content in Everything
- Navigate to:
HKEY_CLASSES_ROOT\Folder\shell\Search content in Everything
- Create the following key:
command
- Navigate to:
HKEY_CLASSES_ROOT\Folder\shell\Search content in Everything\command
- Set the (Default) value data to:
"C:\Program Files\Everything\Everything.exe" -path "%1" -s content:
(where C:\Program Files\Everything\Everything.exe is your Everything.exe location)
-
- Posts: 3
- Joined: Tue Dec 10, 2024 10:17 am
Re: Searching file content in specific folder
thanks! Was hoping i can use show window hotkey then prefill automatically but i guess this will do for now.
i will also set another hotkey for "Shortcuts for Search Edit I Add Search For Content command"
thanks again!
i will also set another hotkey for "Shortcuts for Search Edit I Add Search For Content command"
thanks again!