Flow-Launcher / Flow.Launcher

:mag: Quick file search & app launcher for Windows with community-made plugins
https://flowlauncher.com
MIT License
8.1k stars 316 forks source link

Explorer plugin - Everything: custom filters #2009

Open gisturbance opened 1 year ago

gisturbance commented 1 year ago

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

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

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.

deefrawley commented 1 year ago

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.

gisturbance commented 1 year ago

@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.~

github-actions[bot] commented 1 year ago

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] commented 1 year ago

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] commented 1 year ago

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] commented 1 year ago

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] commented 11 months ago

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.

DRYN07 commented 5 months ago

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

image

jjw24 commented 4 months ago

Unfortunately not aware anyone that has started working on this.

deefrawley commented 4 months ago

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

DRYN07 commented 4 months ago

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

gisturbance commented 4 months ago

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...