Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It overrides other plugins (windows OS) #36

Open
Leonard1980 opened this issue Apr 25, 2017 · 6 comments
Open

It overrides other plugins (windows OS) #36

Leonard1980 opened this issue Apr 25, 2017 · 6 comments
Labels

Comments

@Leonard1980
Copy link

Leonard1980 commented Apr 25, 2017

For example, typing "list" it displays the found files first, instead of using only the command within the "Package manager" plugin, or, at least to be displayed last.

Proposed solution: disable non-prefix searches and add a prefix for the app search. A more complex solution should be an algorithm for the non-prefix searches (like app name "begin with" search - instead of "containing" - and adding the search results at the end, or something like the fallback plugin)

@Leonard1980 Leonard1980 changed the title It overrides other plugins, making them useless (windows OS) It overrides other plugins (windows OS) Apr 25, 2017
@bayleedev
Copy link
Member

It shows you files when you type in "list" that seems like a bug.

@khawarizmus
Copy link

@Leonard1980 How did you disabled the non-prefix searches ?

@bayleedev
Copy link
Member

@gimyboya the non-prefix is the app search. You could disable this by making it so you have no app directories like this:

{
  "plugins": [
    {
      "name": "tinytacoteam/zazu-file-finder",
      "variables": {
        "append": false,
        "directories": {
          "appPath": ["/PATH/DOSE/NOT/EXIST"]
        }
      }
    }
  ]
}

@Leonard1980
Copy link
Author

@gimyboya It was just a proposed solution, I haven't found how to disable those non-prefix searches.
@blainesch The above workaround does not work for me. It just disables every file search. Thanks anyway

@esthor
Copy link

esthor commented Feb 8, 2018

This is a problem on macOS as well. Essentially, if you use this "file-finder" plugin, all other plugins' results will be at the bottom. So, either you:

  1. use the arrow keys to move "up" on the first result (to get to the bottom of the list)
    OR
  2. remove ""tinytacoteam/zazu-file-finder"" from the plugins list in the .zazurc.json file (meaning, get rid of this default plugin to make the use of all others not challenge your sanity).

On macOS at least it's not such a huge problem to remove this file-finder plugin and just use the Spotlight system default file-finder instead (⌘-Space bar)

@esthor
Copy link

esthor commented Feb 8, 2018

One solution might be to open up an API for special words in the file-finder plugin. Since it's a default/core plugin, maybe have a special dictionary (in a JSON?) that other plugins can talk to or at least users could manually write to? Like "Hey, I'm xyz plugin and I need the "xyzthis" and "xyzthat" namespaces, please don't respond to those exact queries". That way you are not sacrificing functionality in the file-finder plugin, and it can play nicely with others. Maybe this actually goes up a level, to how Zazu keywords work?

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

No branches or pull requests

4 participants