diff --git a/crates/nu-command/src/filters/find.rs b/crates/nu-command/src/filters/find.rs index 80040ea57b..f4273b9cde 100644 --- a/crates/nu-command/src/filters/find.rs +++ b/crates/nu-command/src/filters/find.rs @@ -130,6 +130,10 @@ impl Command for Find { ] } + fn search_terms(&self) -> Vec<&str> { + vec!["filter", "regex", "search", "condition"] + } + fn run( &self, engine_state: &EngineState, diff --git a/crates/nu-command/src/filters/where_.rs b/crates/nu-command/src/filters/where_.rs index 7e92b338b5..691c04c345 100644 --- a/crates/nu-command/src/filters/where_.rs +++ b/crates/nu-command/src/filters/where_.rs @@ -23,6 +23,10 @@ impl Command for Where { .category(Category::Filters) } + fn search_terms(&self) -> Vec<&str> { + vec!["filter", "find", "search", "condition"] + } + fn run( &self, engine_state: &EngineState, diff --git a/crates/nu-command/src/network/fetch.rs b/crates/nu-command/src/network/fetch.rs index 9a4926dcf1..98548147c5 100644 --- a/crates/nu-command/src/network/fetch.rs +++ b/crates/nu-command/src/network/fetch.rs @@ -76,7 +76,9 @@ impl Command for SubCommand { } fn search_terms(&self) -> Vec<&str> { - vec!["network", "fetch", "get", "pull", "request", "http"] + vec![ + "network", "fetch", "get", "pull", "request", "http", "download", "curl", "wget", + ] } fn run( diff --git a/crates/nu-command/src/shells/exit.rs b/crates/nu-command/src/shells/exit.rs index 76e4ae04cc..9cd8943d8a 100644 --- a/crates/nu-command/src/shells/exit.rs +++ b/crates/nu-command/src/shells/exit.rs @@ -30,6 +30,10 @@ impl Command for Exit { "Exit a Nu shell or exit Nu entirely." } + fn search_terms(&self) -> Vec<&str> { + vec!["quit", "close", "exit_code", "error_code", "logout"] + } + fn run( &self, engine_state: &EngineState, diff --git a/crates/nu-command/src/system/which_.rs b/crates/nu-command/src/system/which_.rs index 224f9d7977..fe09f8bf5e 100644 --- a/crates/nu-command/src/system/which_.rs +++ b/crates/nu-command/src/system/which_.rs @@ -32,6 +32,10 @@ impl Command for Which { "Finds a program file, alias or custom command." } + fn search_terms(&self) -> Vec<&str> { + vec!["find", "path", "location", "command"] + } + fn run( &self, engine_state: &EngineState,