srwi / EverythingToolbar

Everything integration for the Windows taskbar.
Other
9.49k stars 412 forks source link

Feature: Keyboard shortcuts to toggle search filters #354

Open ejorsta opened 1 year ago

ejorsta commented 1 year ago

Preflight Checklist

Problem Description

There are no keyboard shortcuts (at least not that I have found) for quick toggling of search filters. I use the regular expressions matching quite often, and it would be nice with a quicker way of turning it on and off.

Proposed Solution

User-mappable keyboard shortcuts for toggling the four search filters (Match Case, Match Whole Word, Match Path, Regular Expressions). I suggest expanding the Change Shortcut menu (Preferences -> Change Shortcut...) to include five rows, one for each search filter, and one for the Launch EverythingToolbar shortcut.

Alternatives Considered

A simpler alternative would be non-mappable shortcuts, for example mapping them to Ctrl+A, Ctrl+S, Ctrl+D, Ctrl+F. Less flexible, but doesn't involve any redesign of the Change Shortcut menu.

Additional Information

No response

shodanx2 commented 1 year ago

Hello,

I have made a similar request regarding search filters (or bookmarks ?)

https://github.com/srwi/EverythingToolbar/issues/360

However instead of a keyboard toggle, I would like to introduce the concept of a default search string

So, a search term that is always present and does not get removed (as "remember filter" currently does)

And context dependant default search string, meaning one default string when you just click on the toolbar and another default string when you press windows key and type (default search string from start search invocation)

MohammedGoder commented 1 year ago

Hi,

I'd like to propose a change from having the search launch using the shortcut to toggle open and close.

jardenz commented 1 year ago

Another vote for this; however while OP proposes building out menu options to configure shortcut keys for the filters, that's a heavier lift than just reading the existing shortcut key from the Filters.csv or Filters-1.5a.csv that EverythingToolbar is already reading. In other words just define and manage your shortcut keys in Everything UI, and let EverythingToolbar sync to that - why recreate the wheel.

@srwi the shortcut key for each filter is the three-digit number at the end of each filter line in the Filters-1.5a.csv file. Example

"EVERYTHING",0,0,0,0,0,0,0,0,0,"","","Date Modified",1,,,561

The "561" at the end represents ALT+1. "562" would be ALT+2, etc. You probably already know this.