#plugin #library #core #fsearch

yanked fsearch-core

The core library for fsearch

3 releases

0.0.11 Mar 15, 2024
0.0.10 Nov 5, 2023
0.0.6 Oct 27, 2023

#1501 in Development tools

Download history 15/week @ 2024-07-24 7/week @ 2024-07-31 10/week @ 2024-09-18 13/week @ 2024-09-25

339 downloads per month
Used in 2 crates

MIT license

18KB
382 lines

fsearch-core

fsearch core utils for building plugins in rust.

What You have access to ?

Functions

get_css() -> String;
get_cfg() -> Option<Config>;
get_plugins() -> Vec<PluginConfig>;

plugin_response_to_json(plugin_response: PluginResponse) -> String;

Structs & Enums

pub struct Config {
    /// The look section
    pub look: Option<Look>,
    /// The network section
    pub network: Option<Network>,
}

pub struct PluginConfig {
    /// The name of the plugin
    pub name: String,
    /// Plugin description
    pub description: String,
    /// The command to execute
    pub cmd: String,
    /// Run on any query
    pub run_on_any_query: Option<bool>,
    /// Priority
    /// The priority is used to sort the plugins displayed in the UI default is 0 and max is 3
    pub priority: Option<i32>,
    /// dev mode (not used yet)
    /// This mode will show debug info in the UI
    pub dev: Option<bool>,
}

pub struct PluginResponse {
    pub gtk: Option<Vec<GtkComponent>>,
    pub actions: Option<Vec<PluginAction>>,
}

All these structs can be deserialize

Dependencies

~1–1.9MB
~40K SLoC