diff --git a/crates/nu-command/src/bytes/reverse.rs b/crates/nu-command/src/bytes/reverse.rs index 977183378c..efdfc00dc6 100644 --- a/crates/nu-command/src/bytes/reverse.rs +++ b/crates/nu-command/src/bytes/reverse.rs @@ -40,7 +40,7 @@ impl Command for BytesReverse { } fn search_terms(&self) -> Vec<&str> { - vec!["convert", "inverse"] + vec!["convert", "inverse", "flip"] } fn run( diff --git a/crates/nu-command/src/core_commands/let_.rs b/crates/nu-command/src/core_commands/let_.rs index 853f145fa9..41272144aa 100644 --- a/crates/nu-command/src/core_commands/let_.rs +++ b/crates/nu-command/src/core_commands/let_.rs @@ -35,6 +35,10 @@ impl Command for Let { true } + fn search_terms(&self) -> Vec<&str> { + vec!["set", "const"] + } + fn run( &self, engine_state: &EngineState, diff --git a/crates/nu-command/src/filters/reverse.rs b/crates/nu-command/src/filters/reverse.rs index 41030a9ae9..566871ccd5 100644 --- a/crates/nu-command/src/filters/reverse.rs +++ b/crates/nu-command/src/filters/reverse.rs @@ -21,6 +21,10 @@ impl Command for Reverse { "Reverses the table." } + fn search_terms(&self) -> Vec<&str> { + vec!["convert, inverse, flip"] + } + fn examples(&self) -> Vec { vec![Example { example: "[0,1,2,3] | reverse", diff --git a/crates/nu-command/src/filters/select.rs b/crates/nu-command/src/filters/select.rs index a7d786ce73..d53d7903d2 100644 --- a/crates/nu-command/src/filters/select.rs +++ b/crates/nu-command/src/filters/select.rs @@ -29,6 +29,10 @@ impl Command for Select { "Down-select table to only these columns." } + fn search_terms(&self) -> Vec<&str> { + vec!["pick", "choose", "get"] + } + fn run( &self, engine_state: &EngineState, diff --git a/crates/nu-command/src/filters/skip/skip_.rs b/crates/nu-command/src/filters/skip/skip_.rs index 202637dd64..dfa5d07586 100644 --- a/crates/nu-command/src/filters/skip/skip_.rs +++ b/crates/nu-command/src/filters/skip/skip_.rs @@ -26,6 +26,10 @@ impl Command for Skip { "Skip the first n elements of the input." } + fn search_terms(&self) -> Vec<&str> { + vec!["ignore", "remove"] + } + fn examples(&self) -> Vec { vec![ Example { diff --git a/crates/nu-command/src/filters/skip/skip_until.rs b/crates/nu-command/src/filters/skip/skip_until.rs index f0cafdbadf..75afa69b80 100644 --- a/crates/nu-command/src/filters/skip/skip_until.rs +++ b/crates/nu-command/src/filters/skip/skip_until.rs @@ -28,6 +28,10 @@ impl Command for SkipUntil { "Skip elements of the input until a predicate is true." } + fn search_terms(&self) -> Vec<&str> { + vec!["ignore"] + } + fn examples(&self) -> Vec { vec![Example { description: "Skip until the element is positive", diff --git a/crates/nu-command/src/filters/skip/skip_while.rs b/crates/nu-command/src/filters/skip/skip_while.rs index 19bc7853af..e43b5c2edf 100644 --- a/crates/nu-command/src/filters/skip/skip_while.rs +++ b/crates/nu-command/src/filters/skip/skip_while.rs @@ -28,6 +28,10 @@ impl Command for SkipWhile { "Skip elements of the input while a predicate is true." } + fn search_terms(&self) -> Vec<&str> { + vec!["ignore"] + } + fn examples(&self) -> Vec { vec![Example { description: "Skip while the element is negative", diff --git a/crates/nu-command/src/strings/str_/reverse.rs b/crates/nu-command/src/strings/str_/reverse.rs index 108c620a0f..2fa4987321 100644 --- a/crates/nu-command/src/strings/str_/reverse.rs +++ b/crates/nu-command/src/strings/str_/reverse.rs @@ -28,7 +28,7 @@ impl Command for SubCommand { } fn search_terms(&self) -> Vec<&str> { - vec!["convert", "inverse"] + vec!["convert", "inverse", "flip"] } fn run( diff --git a/crates/nu-command/src/system/ps.rs b/crates/nu-command/src/system/ps.rs index 0a36337d58..4a49bc7530 100644 --- a/crates/nu-command/src/system/ps.rs +++ b/crates/nu-command/src/system/ps.rs @@ -29,6 +29,10 @@ impl Command for Ps { "View information about system processes." } + fn search_terms(&self) -> Vec<&str> { + vec!["procedures", "operations", "tasks", "ops"] + } + fn run( &self, engine_state: &EngineState,