Add matcher property to actions and pass search to handler function
This pull request adds a matcher property to actions that allows for dynamic matching of actions. The matcher property can be a function that receives the search string and returns a boolean indicating whether the action should be executed.
When the matcher function is defined, the search will only use it and not match on the title or keywords of the action.
It also passes the search string to the handler function, so that the handler can use it to perform actions.
Both additions allow actions based on the search string, like jumping to resources (user, project, …) pages. Coupled with semantic object IDs this can open the gate to a lot of possibilities.
I think this would be a great addition! Unfortunately, this repo seems a bit abandoned, so I would suggest creating the PR on this fork https://github.com/KonnorRogers/konnors-ninja-keys created by @KonnorRogers, which seems to be pretty active.
Hi @aMaze613. Thanks for letting me know! 😊