Flow.Launcher icon indicating copy to clipboard operation
Flow.Launcher copied to clipboard

Explorer plugin - Everything: custom filters

Open gisturbance opened this issue 2 years ago • 12 comments

Is your feature request related to a problem? Please describe.

Sometimes when searching, it can be useful to limit search within certain criteria:

  • excluding all files that are offline (on a disconnected drive)
  • searching within audio-only files (since different file extensions extist)
  • searching within files smaller than 10mb

In Everythings GUI, this is possible with filters, that utilize functions. Currently in 1.5a, filters are not being exposed through the SDK, but functions are.

Functions look like that: ext:mp3|txt|jpg size:>10kb size:<5mb online: Give it a name and you've got a filter.

Describe the solution you'd like

A solution would be to manually implement filters. Consisting of a name and a string of functions, a filter just has to be prepended to the search string (with an empty space between).

Example: Name: audio - Content: ext:mp3|flac|opus size:<3mb online: Usage: audio: <some_search_string>

Additionally, one filter should be markable as default, always being applied when omitting its name (unless another filter is used).

Describe alternatives you've considered

The alternative is to manually specify functions with every search.

gisturbance avatar Mar 28 '23 11:03 gisturbance

This could be done if there was an option in Custom Query Shortcuts to allow the shortcut to append or prepend some text rather than be the entire query. @gisturbance - a workaround in the meantime could be to use something like Autohotkey or Espanso to create a text shortcut for the filter, type that in the Flow window and let those apps auto expand the text.

deefrawley avatar Mar 28 '23 20:03 deefrawley

@deefrawley Using the methods you suggested, a default filter would still be missing, though one could use a different keyboard combination as a workaround for that.

~For whatever reason, the Custom Query Shortcuts aren't working for me - they don't expand, while the built-in ones do.~

gisturbance avatar Mar 29 '23 12:03 gisturbance

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jun 10 '23 01:06 github-actions[bot]

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jul 27 '23 01:07 github-actions[bot]

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Sep 11 '23 01:09 github-actions[bot]

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 27 '23 01:10 github-actions[bot]

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Dec 12 '23 01:12 github-actions[bot]

Any news about this? This feature would be very useful. Additionally we could specify search tags and define what to search for.

image

DRYN07 avatar May 15 '24 11:05 DRYN07

Unfortunately not aware anyone that has started working on this.

jjw24 avatar Jul 03 '24 12:07 jjw24

Since my first answer I've found you can use custom query shortcuts to set these up.

image

Use the at symbol after the search query to invoke

image

deefrawley avatar Jul 04 '24 23:07 deefrawley

Yep, I just found the exact solution you mentioned a few days before. It works perfectly, thanks for sharing it here as well.

DRYN07 avatar Jul 05 '24 05:07 DRYN07

Use the at symbol after the search query to invoke

That's what I've always been using, though writing the @ isn't quite appealing, even if you can combine it with Custom Query Hotkeys...

gisturbance avatar Jul 05 '24 08:07 gisturbance