zazu-file-finder
zazu-file-finder copied to clipboard
A file finder for Zazu.
Zazu File Finder
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.
appendif you want to keep the original, and just add additonal directories, set this totruedirectories.filePathset this array for which paths you want FILES to be searched for viaopen *orfind *directories.appPathwill be an array of places you wan to find your APPLICATIONS. For examplechrome
{
"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