@pacharanero if you are okay with copy/pasta you could just define your custom searches in the zazu config:
@cfontes It needs to be in one of these directories:
https://github.com/tinytacoteam/zazu-file-finder/blob/master/directories.js#L67-L69
Which it sounds like you put a symlink in /usr/bin so that should be fine. It also needs to be executable:
https://github.com/tinytacoteam/zazu-file-finder/blob/master/lib/file.js#L45-L47
@blainesch I wrote a plugin myself. In zazu.json's input, I want two keywords to trigger an event at the same time. Do I need to write it two times? Or can you write it together?
{
"name": "xiamiMusic",
"version": "1.0.0",
"description": "xiami music.",
"blocks": {
"input": [
{
"id": "xiamiMusic",
"type": "PrefixScript",
"prefix": "title",
"space": true,
"args": "Required",
"script": "src/search.js",
"connections": ["YuYinPlay"]
},
{
"id": "xiamiMusic",
"type": "PrefixScript",
"prefix": "name",
"space": true,
"args": "Required",
"script": "src/search.js",
"connections": ["YuYinPlay"]
}
],
"output": [
{
"id": "YuYinPlay",
"type": "playSound"
}
]
}
}
title and name