From a403b5a6493245c78f584481d91001a5994be8f8 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 18 Jul 2026 19:29:45 +0545 Subject: [PATCH] docs(plugins): add icon_data field and fix duplicate heading - Add icon_data field to SearchResult documentation - Remove duplicate 'How It Works' heading - Fix plugin directory path references --- docs/plugins.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/plugins.md b/docs/plugins.md index bd6f0f1..422c160 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -14,8 +14,6 @@ Open spotlight and type `hi` or `hello`. The plugin shows a greeting result. ## How It Works -## How It Works - 1. On startup, Modus scans `config/plugins/` for `.py` files and package directories. 2. Each file is imported. The `PLUGIN` module-level variable is extracted (must be a `SpotlightPlugin` subclass). 3. Plugins are instantiated, initialized, and registered. @@ -68,6 +66,7 @@ SearchResult( title="Display Title", # Main text subtitle="Description", # Secondary text icon_name="", # GTK icon name (optional) + icon_data=None, # Raw image bytes for custom icons (optional) score=80.0, # 0-100, higher = better match render_type="default", # Controls rendering (see below) action=lambda: ..., # Called when user selects this result