From 3d45f776922c5ced5ea625cbdf7486d8986187c2 Mon Sep 17 00:00:00 2001 From: pwygab <88221256+merelymyself@users.noreply.github.com> Date: Fri, 15 Jul 2022 23:17:14 +0800 Subject: [PATCH] add `wc` search term for `size` and `length` (#6056) --- crates/nu-command/src/filters/length.rs | 2 +- crates/nu-command/src/strings/size.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-command/src/filters/length.rs b/crates/nu-command/src/filters/length.rs index bebafa1289..0373081b8e 100644 --- a/crates/nu-command/src/filters/length.rs +++ b/crates/nu-command/src/filters/length.rs @@ -25,7 +25,7 @@ impl Command for Length { } fn search_terms(&self) -> Vec<&str> { - vec!["count", "len", "size"] + vec!["count", "len", "size", "wc"] } fn run( diff --git a/crates/nu-command/src/strings/size.rs b/crates/nu-command/src/strings/size.rs index 6f0c29ab43..e63cba7d31 100644 --- a/crates/nu-command/src/strings/size.rs +++ b/crates/nu-command/src/strings/size.rs @@ -25,7 +25,7 @@ impl Command for Size { } fn search_terms(&self) -> Vec<&str> { - vec!["count", "word", "character", "unicode"] + vec!["count", "word", "character", "unicode", "wc"] } fn run(