pub enum Source {
Launcher,
Window {
identifier: String,
},
File {
path: PathBuf,
},
Clipboard {
text: String,
},
Plugin {
plugin: String,
arg: String,
variables: Vec<(String, String)>,
mods: Vec<Mod>,
},
System {
id: String,
},
Process {
pid: u32,
},
Emoji {
emoji: String,
},
Calc {
answer: String,
},
Url {
url: String,
},
}Expand description
Where a result came from. Determines how it is activated.
Variants§
Launcher
Produced by the pop-launcher service; activate by Indice.
Window
An open window, activated through the compositor rather than by launching anything. Carries only the compositor’s identifier string, so the engine stays free of Wayland types.
File
A file on disk, opened with the user’s default handler.
Clipboard
A clipboard history entry; activating it copies the text back.
Plugin
Produced by a jump plugin; activate by running the plugin’s action.
Fields
System
A built-in command provided by the frontend — toggling dark mode, opening a settings page. Carries only an identifier so the engine stays free of desktop specifics; the frontend maps it to an action.
Process
A running process; activating it sends SIGTERM.
Emoji
An emoji. Activating it copies the character.
Distinct from Source::Clipboard even though both copy, because
the row is drawn differently: the glyph is the icon, and reusing
Clipboard left every emoji row showing a generic placeholder in the
icon slot — caught by looking at it, not by any test.
Calc
A calculator answer. Activating it copies the value, which is what the result is for — the answer is already on screen.
Url
A web link — a quicklink or a fallback search; activating it opens the URL with the user’s default handler.