Crate anyrun_macros

Source

Attribute Macrosยง

config_args
get_matches
Function that takes the current text input as an RString as the first argument, and the second argument can be one of:
handler
The function to handle the selection of an item. Takes a Match as its first argument, and the second argument can be one of:
info
Function that returns the plugin info as a PluginInfo object. Takes no arguments.
init
Function that takes an RString as the only argument, which points to the anyrun config directory. Returns the data the plugin operates on. This data is accessible as both a normal borrow and a mutable borrow to get_matches and handler.