How can I make a filter clear the search box?

Discussion related to "Everything" 1.5.
Post Reply
ChrisGreaves
Posts: 821
Joined: Wed Jan 05, 2022 9:29 pm

How can I make a filter clear the search box?

Post by ChrisGreaves »

I did an advanced search on Filters and found two threads from me here and here.
Neither thread seems to answer my current question, and the other topics seem more complicated.

How can I make a filter clear the search box?
This post taught me how to set up my generic search at startup
t: ext:doc
(although today I don't see it set in Tools, Options.)

Today I have a new filter named "Photos:
T:\Media\Images\Camera\ ext:jpg dm:thismonth
which works well; I take photos every day, in my garden, town, house, equipment, screen shots - you name it - and my Photos filter shows me what I've taken this month. BUT that startup search
t: ext:doc
combines with my photos filter
T:\Media\Images\Camera\ ext:jpg dm:thismonth
to guarantee that my result list will be empty (because a search that insists on ext:DOC and ext:JPG by definition must be empty!

How can I modify my Photos filter to clear out the search box when I activate the filter?
I want activation of the specific filter "Photos" to (somehow) include the command "Clear Searchbox".

I suspect that the answer will include "Chris, write a MACRO"
Thanks, Chris
Native2904
Posts: 112
Joined: Mon Nov 22, 2021 8:36 pm

Re: How can I make a filter clear the search box?

Post by Native2904 »

2ChrisGreaves
I don’t know whether this answer satisfies you, but If you toggle the window using a keyboard shortcut, the filters are reset.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: How can I make a filter clear the search box?

Post by void »

Filters cannot clear the search box.

Filters always add to the current search.



What you want is a bookmark.

Bookmarks change the search and search options.

From the Bookmarks menu, click Add to bookmarks.
Change the Name to:
Clear Search

Change the Search to: Custom and leave the search box empty.
Optionally set the filter and other search options.
Optionally set a keyboard shortcut.
Click OK.



Alternatively, pressing Alt + Home will set your search and search options to their defaults.
The defaults can be setup under Tools -> Options -> Home.
This post taught me how to set up my generic search at startup
t: ext:doc
(although today I don't see it set in Tools, Options.)
Check under Tools -> Options -> Home -> Search


I want activation of the specific filter "Photos" to (somehow) include the command "Clear Searchbox".
Create a Photos bookmark:
From the Bookmarks menu, click Add to bookmarks.
Change the Name to:
Photos

Change the Search to: Custom and leave the search box empty.
Set the filter to:
Photos

Optionally set a keyboard shortcut.
Click OK.
Post Reply