Page 1 of 1

Apply filter with key from search bar?

Posted: Sun May 26, 2019 10:20 am
by burgundy
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?

Re: Apply filter with key from search bar?

Posted: Sun May 26, 2019 11:27 am
by tuska
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:)

Re: Apply filter with key from search bar?

Posted: Sun May 26, 2019 7:03 pm
by Stamimail
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.

Re: Apply filter with key from search bar?

Posted: Tue May 28, 2019 2:15 pm
by burgundy
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?

Re: Apply filter with key from search bar?

Posted: Tue May 28, 2019 2:25 pm
by tuska
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.

Re: Apply filter with key from search bar?

Posted: Tue May 28, 2019 2:38 pm
by burgundy
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.

Re: Apply filter with key from search bar?

Posted: Tue May 28, 2019 3:04 pm
by tuska
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

Re: Apply filter with key from search bar?

Posted: Tue May 28, 2019 6:38 pm
by Stamimail

Re: Apply filter with key from search bar?

Posted: Tue May 28, 2019 9:51 pm
by tuska
Thank you for linking to the topic regarding suggestions for Search History.

Regards,
Karl

Re: Apply filter with key from search bar?

Posted: Thu May 30, 2019 12:45 pm
by burgundy
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.

Re: Apply filter with key from search bar?

Posted: Thu May 30, 2019 1:16 pm
by therube
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

Re: Apply filter with key from search bar?

Posted: Tue Jun 04, 2019 6:44 pm
by burgundy
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?

Re: Apply filter with key from search bar?

Posted: Fri Jun 07, 2019 8:02 am
by void
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

Re: Apply filter with key from search bar?

Posted: Fri Jun 07, 2019 8:55 am
by void
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

Re: Apply filter with key from search bar?

Posted: Sat Jun 08, 2019 12:45 pm
by burgundy
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!

Re: Apply filter with key from search bar?

Posted: Thu Jun 13, 2019 11:28 am
by burgundy
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.



.

Re: Apply filter with key from search bar?

Posted: Fri Jun 14, 2019 8:23 am
by void
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.