summaryrefslogtreecommitdiffstats
path: root/src/command/trigger_type.rs
blob: d37e1e7d8a927406f91d971982654225628af216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use {
    crate::verb::Verb,
};

/// This rather vague enum might be precised or removed. It
///  serves today to characterize whether a verb execution
///  comes from the input or not (in this case the input is
///  consumed and cleared when the verb is executed).
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum TriggerType<'v> {
    /// the verb was typed in the input and user has hit enter.
    Input(&'v Verb),
    /// probably a key shortcut
    Other,
}