Flow-Launcher / Flow.Launcher.PluginsManifest

Community-made plugins and submissions
36 stars 106 forks source link

Re-order plugin entries by downloads count #284

Open KrystianLesniak opened 1 year ago

KrystianLesniak commented 1 year ago

Hi there.

As I see, currently Flow Launcher displays plugins in plugin store in the same order as they are present in plugins.json. For small number of plugins it was fine, but right now when a lot of plugins have been created for Flow Launcher a lot of very useful and appreciated by users plugins may be at the end of the list in shadow of plugins created earlier.

My proposed quick and easy solution for this problem is to reorder plugins in plugin.json using downloads_count property exposed by GitHub API: https://api.github.com/repos/{repository_author}/{repository_name}/releases.

Changes in the code will perform:

  1. Send a request to the API
  2. Iterate through records from API and sum downloads_count property
  3. Order items by sum of downloads_count

As we know Flow Launcher is becoming a powerful tool thanks to it's strong community and plugins, this feature will result in much more pleasing user experience, especially for new users:

jjw24 commented 1 year ago

Hey, good suggestion and topic for discussion.

We haven't introduced this intentionally, because haven't quite figured out what type of ordering is fair.

Would ordering by downloads mean that new plugins will miss out being at the top? Will plugins that have been in the store for a while rack up more counts than recent ones?

Would this type of ordering discourage plugin developers of a fair chance if users just gravitate towards the most popular ones?

Let's clarify and discuss before implementing.

@Flow-Launcher/team

deefrawley commented 1 year ago

A good topic for discussion. I think ordering by downloads would be unfair to new plugins, or indeed very good plugins that just have a niche user base. Given we have the search functionality in the plugin store I think sorting alphabetically is the only really fair option (we also have a 'new plugin' section at the top). Perhaps we could sort this way but still show the download count on the plugin card?

VictoriousRaptor commented 1 year ago

Maybe we can add a category called “popular plugins”?

z1nc0r3 commented 1 year ago

As @VictoriousRaptor's suggestion, adding a "popular plugins" category could be a great way to highlight widely used plugins without affecting the default sorting order.

JohnTheGr8 commented 1 year ago

Maybe we can add a category called “popular plugins”?

my 2 cents: instead of popular plugins, we can mark certain plugins as featured to indicate that we consider them useful, functional, maintained etc.

In practice: