feat: add support for external plugins and enhance plugin management

This commit is contained in:
2026-03-15 18:54:55 +01:00
parent b8a9a6b02f
commit d1479f41d2
15 changed files with 389 additions and 19 deletions

View File

@@ -3,7 +3,7 @@ mod platform;
use std::path::Path;
use async_trait::async_trait;
use k_launcher_kernel::{LaunchAction, Plugin, PluginName, ResultId, ResultTitle, Score, SearchResult};
use k_launcher_kernel::{LaunchAction, Plugin, ResultId, ResultTitle, Score, SearchResult};
pub struct FilesPlugin;
@@ -32,7 +32,7 @@ fn expand_query(query: &str) -> Option<String> {
#[async_trait]
impl Plugin for FilesPlugin {
fn name(&self) -> PluginName {
fn name(&self) -> &str {
"files"
}