lin-ycv / EverythingPowerToys

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

[Request] Result type priority setting #46

Closed Pheggas closed 1 year ago

Pheggas commented 1 year ago

Is your feature request related to a problem? Please describe. I just started using PowerToys Run and immediately attached this plugin to it. I love it so far but the one thing i hate is that i can't sort things that i want to display. For example, when i search for program, it shows files first and then the .exe itself.

Describe the solution you'd like I want to customize those priorities to my taste. For example to display .exe files first, then folders, then files and even sort individual file extensions (but that's not a core of this FR)

Describe alternatives you've considered There's none sadly, just to use Search Everything which defeats purpose of EverythingPowerToys

Additional context In Search Everything app for Windows, there's feature that will mark your last selected option (in list of things that the search found) if you already search for that string and opened file / program with it. For example, when i search for program, then select -> open it, and then after some time i will open Search Everything again and search for same string again, it would automatically mark my last selected option. I would like to see that feature in EverythingPowerToys too, in such a form like it would offer my last selected option as the first result in PowerToys Run window.

lin-ycv commented 1 year ago

For priority sort, that'd require custom logic that not part of the Everything SDK, but I think you can set the sort to extension name ascending in settings.toml, that should give you a similar behaviour to what you're requesting (most of the time)

For the option to keep last selection, I need to go back and check how PTR handles that, I believe the default behaviour of PTR keeps your previous query? Not sure about selection, it might be outside the scope of this plugin.

Pheggas commented 1 year ago

For priority sort, that'd require custom logic that not part of the Everything SDK

That's unfortunate. Thanx anyway for nice mapping of possibilities.

I believe the default behaviour of PTR keeps your previous query?

That sounds about right.

UPDATE: It seems it started to show last opened folder as the first result (which is great and exactly what i wanted as one part of my FR). I'm not sure what caused it. However, i noticed there's issue of "entering" the result in input edittext box. It is most noticable when i quick tapping the down key to scroll the results. It is really hard to describe and probably it is topic for new issue. Just imagine you type something, quickly scrolling the results using down key and suddently in search window is text that you were on when you were scrolling.

Example: You search for "Dog" and hope to find Dog.png file. However as you scroll down the results fast enough, it would enter the text of result you were on in time of that bug happened - ending up with searching for "Dog and cat.mp4". I fixed this issue by disabling the default PowerToys search option and keep enabled only the EverythingPowerToys plugin.

lin-ycv commented 1 year ago

that's an issue on how PTR works, it has been raised before, but because of how PT is set up, it's a bit complicated to implement a solution https://github.com/microsoft/PowerToys/issues/18693 https://github.com/microsoft/PowerToys/issues/22053

Pheggas commented 1 year ago

that's an issue on how PTR works, it has been raised before, but because of how PT is set up, it's a bit complicated to implement a solution microsoft/PowerToys#18693 microsoft/PowerToys#22053

I agree to see same issue so it's definitely this one. Thank you for mentioning!