Skip to content

Latest commit

 

History

History
104 lines (82 loc) · 2.15 KB

readme.md

File metadata and controls

104 lines (82 loc) · 2.15 KB

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.

  • append if you want to keep the original, and just add additonal directories, set this to true
  • directories.filePath set this array for which paths you want FILES to be searched for via open * or find *
  • directories.appPath will be an array of places you wan to find your APPLICATIONS. For example chrome
{
  "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