Skip to content
This repository has been archived by the owner on Oct 26, 2019. It is now read-only.

[Feature Request] Ability to sort plugin results #269

Closed
nalexander50 opened this issue Mar 13, 2017 · 3 comments
Closed

[Feature Request] Ability to sort plugin results #269

nalexander50 opened this issue Mar 13, 2017 · 3 comments

Comments

@nalexander50
Copy link
Contributor

There are times where I really wish that I could manually re-order plugin results. For example, when I search for weather, there are about 2 dozen results from File Finder before I actually see results from the Weather Plugin. Similar results have been observed using the IP plugin. This is super frustrating and basically diminishes the usefulness of the plugins.

Expected Behavior

  • Weather results will be displayed first

Actual Behavior

  • Weather results are buried by dozens of File Finder results

Steps to reproduce the behavior

  • Search

Versions

  • Zazu:

App Environment: production
App Version: 0.4.0
Electron Version: 1.3.13
Node Version: 6.5.0
Chrome Version: 52.0.2743.82

  • OS: Windows 10 Enterprise, Build 14393.693
  • GIT: N/A

Log:
https://gist.github.com/nalexander50/305743bcd99d76d0e2ca82dc794b6ffe

@nalexander50
Copy link
Contributor Author

Just for giggles, I tried having Weather as the very first plugin in my plugins array in hopes that the search results would key off the array ordering. Unfortunately, I am still seeing the same behavior where Weather is placed at the bottom.

@bayleedev
Copy link
Member

Sorting is fun. Basically it works like this:

  • Prefix Script (with id)
  • Root Script (with id)
  • Prefix Script
  • Root Script

There is also logic that if something with an id is clicked on, it's ranked higher next time.

In this case you are looking at the file finder, which is a Root Script with an id and wanting it higher than the Weather plugin which is a prefix script without an id.

The fastest way to fix this is to add an id to the weather plugin, since I didn't when I created it but should have.

It could be interesting for users to specify they always want to rank some plugins higher or lower than others, but I'm unsure what the api would look like.

If you want to try and add an id to the weather plugin you can go here

@bayleedev
Copy link
Member

I added the id to the weather plugin here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants