pub enum Command {
Show 25 variants
Set {
name: String,
value: String,
},
Unset(String),
Toggle(String),
Query(String),
Bind {
menu: Menu,
key: String,
function: String,
},
Macro {
menu: Menu,
key: String,
seq: String,
},
Color {
object: String,
fg: String,
bg: String,
pattern: Option<String>,
},
Ignore(Vec<String>),
Unignore(Vec<String>),
Uncolor {
object: String,
pattern: Option<String>,
},
Unhook(String),
Unmailboxes(Vec<String>),
Unalias(Vec<String>),
Reset(String),
Alternates(Vec<String>),
Unalternates(Vec<String>),
AutoView(Vec<String>),
UnAutoView(Vec<String>),
AlternativeOrder(Vec<String>),
UnAlternativeOrder(Vec<String>),
MyHdr(String),
UnMyHdr(Vec<String>),
Alias {
nick: String,
expansion: String,
},
Push(String),
Exec(String),
}Expand description
One command off the : prompt. A single line can yield several
(set a=1 b=2 is two assignments, like mutt).
Variants§
Set
Unset(String)
Toggle(String)
Query(String)
set name?: report the value instead of changing it.
Bind
Macro
Color
Ignore(Vec<String>)
Unignore(Vec<String>)
Uncolor
mutt’s uncolor / unmono: drop what a color line put in. *
as the pattern drops every rule of the object.
Unhook(String)
mutt’s unhook: drop every hook of a type, or all of them (*).
Unmailboxes(Vec<String>)
mutt’s unmailboxes: forget watched mailboxes, or all (*).
Unalias(Vec<String>)
mutt’s unalias: drop aliases from the alias file, or all (*).
Reset(String)
mutt’s reset: a setting back to its default.
Alternates(Vec<String>)
mutt’s alternates / unalternates: regexes for my other
addresses (* un-does the lot).
Unalternates(Vec<String>)
AutoView(Vec<String>)
mutt’s auto_view / unauto_view: MIME types rendered inline
by a filter. auto_view leaves the command to mailcap (an empty
[filters] value); unauto_view * clears the lot.
UnAutoView(Vec<String>)
AlternativeOrder(Vec<String>)
mutt’s alternative_order / unalternative_order: which part
of a multipart/alternative wins (* un-does the lot).
UnAlternativeOrder(Vec<String>)
MyHdr(String)
mutt’s my_hdr: one “Name: value” line for every draft.
UnMyHdr(Vec<String>)
unmy_hdr NAME..., or * for all of them.
Alias
Push(String)
Keys fed to the input queue, as a macro sequence.
Exec(String)
A function name run directly.