lin-ycv / EverythingPowerToys

Everything search plugin for PowerToys Run
Eclipse Public License 2.0
2.21k stars 58 forks source link

[Request] Exclude folders/filters from results #30

Closed daniel-richter closed 1 year ago

daniel-richter commented 1 year ago

Would it be possible to exclude files/folders/filters from the displayed results (without modifiying Everthings's own exclude list)?

Is your feature request related to a problem? Please describe. I know, there is an exclude feature directly in Everything. With "full" Everything, I want to search all files on my computer - but with PowerToys, I do not want to see results from all files and folders on my machine (e.g. AppData, temp, .git, .svn, ...).

Describe the solution you'd like I would like to have the possibility to customize specific Everything for PowerToys filter lists (e.g. in settings.toml).

lin-ycv commented 1 year ago

this is a slightly complicated matter depending on the exact behaviour you're looking for. Are you trying to :

This plugin only packages your inputs and passes it on to Everything, so if you're unable to achieve that query behaviour on Everything it's not possible to achieve in this plugin unless I do some hacky logic (which I'd like to avoid doing).

From what I understood in your request, it seems like you want B; if you're comfortable with named instances, B is simple to achieve without any changed on my side. Set your default instance of everything to work for this plugin (excluding the folders you don't want), then create a named instance for the full index (for your other purposes).

If you want A, you can limit a search using search options (which was requested and implemented in #27), some additional info here

settings.toml currently only allow you to create custom extension filters, will have to add some additional code if you'd like to have filters in settings.toml to limit the search to just a few specific folder.

daniel-richter commented 1 year ago

From what I understood in your request, it seems like you want B; if you're comfortable with named instances, B is simple to achieve without any changed on my side. Set your default instance of everything to work for this plugin (excluding the folders you don't want), then create a named instance for the full index (for your other purposes).

Great, that's it! Everything Named Instances will solve my problem. I can e.g. configure Everything's (default instance) include/exclude behaviour and have another instance with different settings (that will e.g. search all folders on my disk). Thanks!

AJolly commented 8 months ago

I'd say extending the custom filters would be very useful - actually is it possible to load/reference a filter you've already created directly in Everything?

lin-ycv commented 8 months ago

@AJolly the sdk is not fully featured, in the sdk, some filters works (like size:) while some others don't (like pic: exe: ..etc) Custom filters for the plugin can be defined in settings. toml As to loading custom filters defined in everything, I'm not sure. If it doesn't work, please open a new issue.