Apply filter with key from search bar?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
burgundy
Posts: 110
Joined: Fri Oct 16, 2009 9:50 am

Apply filter with key from search bar?

Post by burgundy » Sun May 26, 2019 10:20 am

I can assign a filter to a shortcut key but it doesn't work unless I move the focus away from the search bar.

I would like to enter a term in the search bar and then use a shortcut key to apply a preset filter. Is this possible?

tuska
Posts: 183
Joined: Thu Jul 13, 2017 9:14 am

Re: Apply filter with key from search bar?

Post by tuska » Sun May 26, 2019 11:27 am

Yes, I think that's possible.

Filter
Search: dc:today
Keyboard shortcut: ALT+T

Inputline: fenst (Part of a text file created today), then press ...
ALT+T: Filter is applied

Windows 10 Pro (x64) Version 1809 (OS Build 17763.529)
Intel(R) Core(TM) i7-4770 CPU @ 3.4OGHz, 16 GB RAM
Everything - Version 1.4.1.941 (x64) - (Portable on Systemdrive C:)

Stamimail
Posts: 696
Joined: Sat Aug 31, 2013 9:05 pm

Re: Apply filter with key from search bar?

Post by Stamimail » Sun May 26, 2019 7:03 pm

It works for me.
BUT,
I've noticed that when the pane of Search History is open (search suggestions), I can't send a shortcut key.

burgundy
Posts: 110
Joined: Fri Oct 16, 2009 9:50 am

Re: Apply filter with key from search bar?

Post by burgundy » Tue May 28, 2019 2:15 pm

tuska wrote:
Sun May 26, 2019 11:27 am
Search: dc:today
Keyboard shortcut: ALT+T
When I use ALT-T in your example, it opens the Tools menu. Have you changed the shortcut keys for the menu?

tuska
Posts: 183
Joined: Thu Jul 13, 2017 9:14 am

Re: Apply filter with key from search bar?

Post by tuska » Tue May 28, 2019 2:25 pm

No, it was just an example…

My menu language is German and I have no problem with this key combination.
Just use another free key combination, e.g. ALT+O.

burgundy
Posts: 110
Joined: Fri Oct 16, 2009 9:50 am

Re: Apply filter with key from search bar?

Post by burgundy » Tue May 28, 2019 2:38 pm

Stamimail wrote:
Sun May 26, 2019 7:03 pm
I've noticed that when the pane of Search History is open (search suggestions), I can't send a shortcut key.
That is my exact problem.

I use "Search As You Type". I also have some setting (I can't remember which( that moves the focus from the search box to the search results when I press enter.

I key in a search term and then, without pressing enter, I would like to apply a filter. I usually see search suggestions in a drop down.

I don't want to press enter because, if the filter doesn't narrow down the hits sufficiently, then I will key in more search values.

For this reason, I would like Everything to let me apply a filter when the search history is showing.

tuska
Posts: 183
Joined: Thu Jul 13, 2017 9:14 am

Re: Apply filter with key from search bar?

Post by tuska » Tue May 28, 2019 3:04 pm

You could also call the filter, e.g. ALT+O first and then make your search selections.

Personally, I would be annoyed by the window that was folded down with the dropdown arrow,
which hides some of the search results.

One possibility would also be to first set the filter (ALT+O) and then call the "search history management"...
Menu "View" | "Go To" | Show All History


tuska
Posts: 183
Joined: Thu Jul 13, 2017 9:14 am

Re: Apply filter with key from search bar?

Post by tuska » Tue May 28, 2019 9:51 pm

Thank you for linking to the topic regarding suggestions for Search History.

Regards,
Karl

burgundy
Posts: 110
Joined: Fri Oct 16, 2009 9:50 am

Re: Apply filter with key from search bar?

Post by burgundy » Thu May 30, 2019 12:45 pm

tuska wrote:
Tue May 28, 2019 3:04 pm
Personally, I would be annoyed by the window that was folded down with the dropdown arrow, which hides some of the search results.
In my case it's not the search results which get hidden as much as the column headings, which I often want to access to change the sort order. (I know there are also shortcut keys for this but I usually forget which key does what.)

Is there an Everything setting which prevents the dropdown box appearing below the search bar as you key in a search terms? If so then I could use your suggestion of "Show All History" when I needed to access a previous search.

therube
Posts: 2308
Joined: Thu Sep 03, 2009 6:48 pm

Re: Apply filter with key from search bar?

Post by therube » Thu May 30, 2019 1:16 pm

setting which prevents the dropdown box appearing below the search bar as you key in a search terms?
Tools | Options | History -> Always show search suggestions

burgundy
Posts: 110
Joined: Fri Oct 16, 2009 9:50 am

Re: Apply filter with key from search bar?

Post by burgundy » Tue Jun 04, 2019 6:44 pm

therube wrote:
Thu May 30, 2019 1:16 pm
setting which prevents the dropdown box appearing below the search bar as you key in a search terms?
Tools | Options | History -> Always show search suggestions
Would it be possible to make a change such that the history drop down doesn't overlap the column headings when there's only one history item?

void
Site Admin
Posts: 4846
Joined: Fri Oct 16, 2009 11:31 pm

Re: Apply filter with key from search bar?

Post by void » Fri Jun 07, 2019 8:02 am

To extend the toolbar height, to prevent a single auto suggestion covering the result list header:
  • In Everything, type in the following and press ENTER:
    /search_history_always_suggest_extend_toolbar=1
To reset the toolbar to the default height:
  • In Everything, type in the following and press ENTER:
    /search_history_always_suggest_extend_toolbar=0

void
Site Admin
Posts: 4846
Joined: Fri Oct 16, 2009 11:31 pm

Re: Apply filter with key from search bar?

Post by void » Fri Jun 07, 2019 8:55 am

I've fixed an issue with showing search history suggestions above the search box.

If you would like to try this, please try Everything 1.4.1.944:
  • In Everything, type in the following search and press ENTER:
    /search_history_show_above=1
To reset Everything back to showing the search suggestions below the search box:
  • In Everything, type in the following search and press ENTER:
    /search_history_show_above=0

burgundy
Posts: 110
Joined: Fri Oct 16, 2009 9:50 am

Re: Apply filter with key from search bar?

Post by burgundy » Sat Jun 08, 2019 12:45 pm

void wrote:
Fri Jun 07, 2019 8:55 am
I've fixed an issue with showing search history suggestions above the search box.

If you would like to try this, please try Everything 1.4.1.944:
Thank you. That works well.

I must remember how to change that if I need to in future!

burgundy
Posts: 110
Joined: Fri Oct 16, 2009 9:50 am

Re: Apply filter with key from search bar?

Post by burgundy » Thu Jun 13, 2019 11:28 am

Coming back to the original question, is there a way to apply a filter using shortcut key when the focus is on the search bar?

I don't want to move focus to the results list in order to apply a filter. I don't apply a filter first as the results may be simple enough not to need filtering. I simply want to apply a filter as part of entering search characters.

Poster 'Stamimail' has the same problem:
Stamimail wrote:
Sun May 26, 2019 7:03 pm
I've noticed that when the pane of Search History is open (search suggestions), I can't send a shortcut key.



.

void
Site Admin
Posts: 4846
Joined: Fri Oct 16, 2009 11:31 pm

Re: Apply filter with key from search bar?

Post by void » Fri Jun 14, 2019 8:23 am

To set a filter shortcut key:
  • In Everything, from the Search menu, click Organize Filters....
  • Select a filter and click Edit.
  • Click to the right of Keyboard Shortcut and press a new keyboard shortcut.
  • Click OK.
Filter shortcut keys will not work when search suggestions are shown.
This is a bug and will be fixed in a future version of Everything.

Post Reply