Findex Plugins Guide

For users

For developers

Only Rust based plugins are supported.

fn init(_: &RHashMap) -> bool { true }

fn handle_query(query: RStr) -> RVec { if query == "" { return RVec::new(); }

RVec::from(vec![FResult {
    cmd: RString::from(format!("xdg-open {query}")),
    name: RString::from(format!("Open {query}")),
    desc: ROption::RNone,
    score: isize::MAX,
    icon: RString::from("browser"),
}])

}

defineplugin!("url!", init, handlequery); `` *This is the code ofurlopen` plugin* - Edit this to create your plugin. - After writing code, follow user guide to test your plugin

Key information

The first argument to define_plugin! macro is the prefix used to call the plugin's query handler. The user can overwrite this.