diff --git a/crates/nu-command/src/platform/ansi/ansi_.rs b/crates/nu-command/src/platform/ansi/ansi_.rs index 6cce564dc8..6750c289ab 100644 --- a/crates/nu-command/src/platform/ansi/ansi_.rs +++ b/crates/nu-command/src/platform/ansi/ansi_.rs @@ -307,6 +307,10 @@ Format: # ] } + fn search_terms(&self) -> Vec<&str> { + vec!["text-color", "text-style", "colors"] + } + fn run( &self, engine_state: &nu_protocol::engine::EngineState, diff --git a/crates/nu-command/src/platform/kill.rs b/crates/nu-command/src/platform/kill.rs index 14e52d1f55..e97cd1f9e8 100644 --- a/crates/nu-command/src/platform/kill.rs +++ b/crates/nu-command/src/platform/kill.rs @@ -43,6 +43,10 @@ impl Command for Kill { ) } + fn search_terms(&self) -> Vec<&str> { + vec!["stop", "end", "close"] + } + fn run( &self, engine_state: &EngineState, diff --git a/crates/nu-command/src/platform/sleep.rs b/crates/nu-command/src/platform/sleep.rs index 9591de75a3..4d883ab76c 100644 --- a/crates/nu-command/src/platform/sleep.rs +++ b/crates/nu-command/src/platform/sleep.rs @@ -31,6 +31,10 @@ impl Command for Sleep { .category(Category::Platform) } + fn search_terms(&self) -> Vec<&str> { + vec!["delay", "wait", "timer"] + } + fn run( &self, engine_state: &EngineState,