Skip to main content Crate raffi Copy item path Source ui AddonsConfig Container for all addon configurations Args Command-line arguments structure. CalculatorAddonConfig Configuration for the calculator addon ConfigSchema Public schema representation of the v1 config format, used for JSON Schema generation. CurrencyAddonConfig Configuration for the currency addon DefaultBinaryChecker The default binary checker. DefaultEnvProvider The default environment provider. DefaultIconMapProvider The default icon map provider. EmojiAddonConfig Configuration for the emoji picker addon FileBrowserAddonConfig Configuration for the file browser addon GeneralConfig General configuration for persistent defaults ParsedConfig Complete parsed configuration RaffiConfig Represents the configuration for each Raffi entry. ScriptFilterConfig Configuration for a script filter addon TextSnippet A single text snippet entry TextSnippetSourceConfig Configuration for a text snippet source ThemeColorsConfig Per-colour overrides for the native UI theme. WebSearchConfig Configuration for a web search addon ThemeMode Theme mode selection UIType UI type selection DEFAULT_EMOJI_FILES Default data file names downloaded from the rofimoji project when
the user does not provide an explicit data_files list. BinaryChecker A trait for checking if a binary exists. EnvProvider A trait for checking environment variables. IconMapProvider A trait for providing an icon map. clear_emoji_cache Clear the cached emoji data files to force re-download. clear_icon_cache Clear the icon cache file to force regeneration. execute_chosen_command Execute the chosen command or script. execute_web_search_url Build a web search URL by replacing {query} in the template with the percent-encoded query,
then open it with xdg-open. migrate_config_v0_to_v1 Migrate a v0 config (launcher entries as top-level keys) to v1 format
(entries under a launchers key with an explicit version field).
Returns Ok(true) if migration was performed, Ok(false) if already v1+. read_config Read the configuration file and return a ParsedConfig. read_config_from_reader Read config from a reader, accepting both v0 (flat) and v1 (launchers) formats.
Used primarily for tests where no file path is available for migration. read_icon_map Read the icon map from the cache file or generate it if it doesn’t exist. run url_encode_query Percent-encode a query string for use in URLs.
Encodes all characters except unreserved ones (A-Z, a-z, 0-9, ‘-’, ‘.’, ‘_’, ‘~’).