bayleeadamoss / zazu-file-finder

A file finder for Zazu.
18 stars 11 forks source link

Zazu File Finder

Travis Build Status AppVeyor Build Status

Find files and applications on your computer easily.

Commands

> find readme
> open readme

You can also find applications without a prefix by just typing in part of the name:

> chrome

Installing

Add tinytacoteam/zazu-file-finder inside of plugins block of your ~/.zazurc.json file.

{
  "plugins": [
    "tinytacoteam/zazu-file-finder"
  ]
}

Config

If you want to overwrite the directories you can.

{
  "plugins": [
    {
      "name": "tinytacoteam/zazu-file-finder",
      "variables": {
        "append": true,
        "directories": {
          "filePath": [
            "~/Documents"
          ],
          "appPath": [
            "/usr/games"
          ],
          "excludeName": [
            "node_modules"
          ],
          "excludePath": [
            "~/Library"
          ]
        }
      }
    }
  ]
}

If you want to change the matching algorithm you can:

{
  "plugins": [
    {
      "name": "tinytacoteam/zazu-file-finder",
      "variables": {
        "matchBy": "stringincludes" // "fuzzyfind" by default
      }
    }
  ]
}

Development

Testing

WARNING: If you are on MacOS, you cannot test this plugin where Zazu installs it, since ~/.zazu as a hidden folder is ignored.

Run tests in current system environment:

npm run test

Run tests in Docker, which is helpful for running tests in Linux environment when using other platform such as macOS or Windows.

npm run docker-test