Expand description
Search engine, ranking, and plugin host for the jump launcher.
This crate holds everything a launcher frontend needs that is not drawing: talking to the pop-launcher service, ranking results by usage, and running user plugins. It has no UI dependencies, which is what lets the COSMIC (libcosmic) and future GNOME (GTK4) frontends share one engine rather than drifting into two half-implementations.
use jump_core::{Launcher, Frecency, PluginHost};
let (launcher, mut events, _guard) = Launcher::spawn()?;
let plugins = PluginHost::discover();
let frecency = Frecency::load();
launcher.search("fire");
while let Some(event) = events.recv().await {
if let jump_core::Event::Update { items, .. } = event {
// One scale for every provider, then usage as a tiebreak.
let ranked = jump_core::rank::merge(items, "fire", &frecency);
let _ = ranked;
}
}Re-exports§
pub use content::Content;pub use files::Files;pub use frecency::Frecency;pub use launcher::Error;pub use launcher::Event;pub use launcher::Launcher;pub use launcher::LauncherGuard;pub use model::Icon;pub use model::Item;pub use model::ItemKey;pub use model::Mod;pub use model::Results;pub use model::Source;pub use plugin::Manifest;pub use plugin::Plugin;pub use plugin::PluginHost;pub use plugin::QueryResults;
Modules§
- calc
- Calculator and unit conversion, over Qalculate’s
qalc. - content
- Full-text search inside files, on SQLite FTS5.
- emoji
- Emoji search over a compiled-in data set.
- files
- File search.
- frecency
- Usage-weighted re-ranking.
- launcher
- Async bridge to the
pop-launcherIPC service. - model
- The result model shared by every frontend.
- plugin
- Alfred-style plugin host.
- process
- Process search, behind the
killkeyword. - rank
- Cross-source ranking.
- web
- Web links: quicklinks and fallback searches.
Structs§
Enums§
Type Aliases§
- Indice
- u32 value defining the indice of a slot.