From 3bd46fe27a3cf119b5386e5c103cdc68f5de1115 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Sun, 13 Aug 2023 20:27:29 +0200 Subject: [PATCH] Add search terms to `reject` (#9996) # Description This may be easy to find/confuse with `drop` # User-Facing Changes Users coming from SQL will be happier when using `help -f` or `F1` # Tests + Formatting None --- crates/nu-command/src/filters/reject.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/nu-command/src/filters/reject.rs b/crates/nu-command/src/filters/reject.rs index 07d321f1f1..1ef3c6994e 100644 --- a/crates/nu-command/src/filters/reject.rs +++ b/crates/nu-command/src/filters/reject.rs @@ -36,6 +36,10 @@ impl Command for Reject { "To remove a quantity of rows or columns, use `skip`, `drop`, or `drop column`." } + fn search_terms(&self) -> Vec<&str> { + vec!["drop", "key"] + } + fn run( &self, engine_state: &EngineState,