Easiest / fastest way to search for content?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Easiest / fastest way to search for content?

Post by Biff »

Could I use a filter, bookmark to just quickly enter the search phrases in the search field (without "content:", quotation marks)?
void
Developer
Posts: 16746
Joined: Fri Oct 16, 2009 11:31 pm

Re: Easiest / fastest way to search for content?

Post by void »

Maybe the following will help:
  • In Everything, from the Bookmarks menu, click Add to Bookmark...
  • Change the Name to: Insert content:
  • Change the Search to: /replace-sel #nbsp:content:"
  • Press a new keyboard shortcut under Keyboard shortcut.
  • Click OK.
Pressing the above keyboard shortcut will add <space>content:" to your search box.

I'll look into adding a command to do this easily.



Please also consider the following:
  • In Everything, from the Search menu, click Add to Filters...
  • Change the Name to: Content Search
  • Change the Search to: content:search:
  • Change the Macro to: cc<search>
  • Click OK.
Search for cc:"my content search"
(this will just save you from having to type out content:)



Please also consider the following:
  • In Everything, in the search box, press F2.
  • Fill in "A word or phrase in the file"
  • Press ENTER.


An optional content search box in the main UI is on my TODO list.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Easiest / fastest way to search for content?

Post by Biff »

Thank you very much!
In Everything, from the Bookmarks menu, click Add to Bookmark...
Change the Name to: Insert content:
Change the Search to: /replace-sel #nbsp:content:"
Press a new keyboard shortcut under Keyboard shortcut.
Click OK.

Pressing the above keyboard shortcut will add <space>content:" to your search box.
So after pressing the shortcut I have to add the phrase / word and one quotation mark. Is there a way to automatically get the cursor betwenn to quotation marks so one would have to enter the phrase only?
I'll look into adding a command to do this easily.
Many thanks!
Please also consider the following:

In Everything, from the Search menu, click Add to Filters...
Change the Name to: Content Search
Change the Search to: content:search:
Change the Macro to: cc<search>
Click OK.

Search for cc:"my content search"
(this will just save you from having to type out content:)
Can't get this working, respectively do not understand, sorry. I did this:
Image

This does not show any result:
Image
Please also consider the following:

In Everything, in the search box, press F2.
Then this appears:
Image
Fill in "A word or phrase in the file"
Where to I have to enter: "A word or phrase in the file"?
An optional content search box in the main UI is on my TODO list.
Great, thank you!
void
Developer
Posts: 16746
Joined: Fri Oct 16, 2009 11:31 pm

Re: Easiest / fastest way to search for content?

Post by void »

Is there a way to automatically get the cursor betwenn to quotation marks so one would have to enter the phrase only?
Currently, no.
The closing double quote (") is not required.


Can't get this working, respectively do not understand, sorry. I did this:
Please change the filter back to Everything and search for:

*.txt dm:thisyear cc:"my content search"


Where to I have to enter: "A word or phrase in the file"?
While in the Advanced search dialog, use the scroll bar on the right.
At the top is a field called "A word or phrase in the file".
Fill in this field with your content search.
Press ENTER.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Easiest / fastest way to search for content?

Post by Biff »

Please change the filter back to Everything and search for:

*.txt dm:thisyear cc:"my content search"
Sorry, cannot get it working.
While in the Advanced search dialog, use the scroll bar on the right.
At the top is a field called "A word or phrase in the file".
Fill in this field with your content search.
Press ENTER.
Ah, sorry, holy sh...any idea how one can miss the scroll bar. So twice (to show Everything window and then show the advanced search, the cursor always already is in the "A word..." field) pressing a key is needed and just entering the phrase / word.

Is there a way to show the paragraph or some text around the search phrase in the preview with the serach text phrase being marked? Can one search the preview?
void
Developer
Posts: 16746
Joined: Fri Oct 16, 2009 11:31 pm

Re: Easiest / fastest way to search for content?

Post by void »

Sorry, cannot get it working.
Could you please send some debug logs:
  • In Everything, from the Tools menu, under the Debug submenu, click Start Debug Logging.
  • Perform your cc:"my content search" search
  • From the Tools menu, under the Debug submenu, click Stop Debug Logging.
  • What is shown in your log?

Is there a way to show the paragraph or some text around the search phrase in the preview with the serach text phrase being marked? Can one search the preview?
Highlighting the content search in the preview pane is on my TODO list.
Currently Everything is just showing the preview generated by the system.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Easiest / fastest way to search for content?

Post by Biff »

Now it works after some trying. Thank you!
Highlighting the content search in the preview pane is on my TODO list.
That is great, thank you!
void
Developer
Posts: 16746
Joined: Fri Oct 16, 2009 11:31 pm

Re: Easiest / fastest way to search for content?

Post by void »

Everything 1.5.0.1325a adds new commands to add a search for common properties.


The following commands have been added:
  • Search Edit | Add Search For Name
  • Search Edit | Add Search For Path
  • Search Edit | Add Search For Size
  • Search Edit | Add Search For Extension
  • Search Edit | Add Search For Type
  • Search Edit | Add Search For Date Modified
  • Search Edit | Add Search For Date Created
  • Search Edit | Add Search For Attributes
  • Search Edit | Add Search For File List Filename
  • Search Edit | Add Search For Run Count
  • Search Edit | Add Search For Date Recently Changed
  • Search Edit | Add Search For Date Accessed
  • Search Edit | Add Search For Date Run
  • Search Edit | Add Search For Content


To set a keyboard shortcut to one of these new commands:
  • In Everything, from the Tools menu, click Options.
    Click the Keyboard tab on the left.
    To the right of Show commands containing, search for: search for
  • Select the desired Search Edit | Add Search For Property
  • Click Add....
  • Press a new keyboard shortcut and click OK.
  • Click OK.


Everything 1.5.0.1325a also adds a /add-search search command so you can completely customize your own insert functions/properties with bookmarks.



Everything 1.5.0.1325a also adds a double_quote_add_search ini setting to automatically add double quotes and position the caret between the quotes.

to automatically append double quotes:
  • Copy and paste the following into your Everything search box:
    /double_quote_add_search=1
  • Press ENTER in your Everything search box.
  • If successful, double_quote_add_search=1 is shown in the status bar for a few seconds.
Please let me know if this is useful.
I will consider making this enabled by default.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Easiest / fastest way to search for content?

Post by Biff »

Thank you very much!

Yes, that looks very useful. Will try how this can be applied in everyday life.
Post Reply