summaryrefslogtreecommitdiffstats
path: root/src/key_command/impl_interactive.rs
blob: f92137d066ff672faf4cd77022e8534813a4fe1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::commands::*;
use crate::context::AppContext;

use super::{Command, InteractiveExecute};

impl InteractiveExecute for Command {
    #[allow(clippy::single_match)]
    fn interactive_execute(&self, context: &mut AppContext) {
        match self {
            Self::SearchIncremental { pattern } => {
                search_string::search_string(context, pattern.as_str(), true)
            }
            _ => (),
        }
    }
}