pub enum Effect {
None,
Type(String),
Run(String),
Cd(PathBuf),
Open(PathBuf),
OpenLink(String),
ShowKeys,
Say(String),
Pass,
}Expand description
What the mode asks Mouser to do. The host checks each one against the
plugin’s granted permissions (Type and Run need shell.type).
Variants§
None
Type(String)
Type this into the shell.
Run(String)
Run a command line in the shell; what the user has typed is kept (cut to the kill ring and yanked back when the prompt returns).
Cd(PathBuf)
Change the shell’s directory (commander’s sync): silently through the
shell integration (Fuzzball s c, fuzzball docs/shell.md), at the next
prompt when a command runs. Never typed: without an integration the
host says so in the status bar instead.
Open(PathBuf)
Hand a file to the desktop’s opener (players etc.).
OpenLink(String)
Open a link (a Markdown link clicked in chat): web, mail and file links only, never through a shell.
ShowKeys
Show the key mappings window.
Say(String)
Status-bar message.
Pass
Not handled now: the key goes to the shell.