diff --git a/crates/nu-command/src/filters/roll/roll_.rs b/crates/nu-command/src/filters/roll/roll_.rs index 188dec4fed..1fc34a5608 100644 --- a/crates/nu-command/src/filters/roll/roll_.rs +++ b/crates/nu-command/src/filters/roll/roll_.rs @@ -11,6 +11,10 @@ impl Command for Roll { "roll" } + fn search_terms(&self) -> Vec<&str> { + vec!["rotate", "shift", "move"] + } + fn signature(&self) -> Signature { Signature::build(self.name()).category(Category::Filters) } diff --git a/crates/nu-command/src/filters/roll/roll_down.rs b/crates/nu-command/src/filters/roll/roll_down.rs index 0ea6f69fe9..4207471188 100644 --- a/crates/nu-command/src/filters/roll/roll_down.rs +++ b/crates/nu-command/src/filters/roll/roll_down.rs @@ -16,6 +16,10 @@ impl Command for RollDown { "roll down" } + fn search_terms(&self) -> Vec<&str> { + vec!["rotate", "shift", "move", "row"] + } + fn signature(&self) -> Signature { Signature::build(self.name()) .named("by", SyntaxShape::Int, "Number of rows to roll", Some('b')) diff --git a/crates/nu-command/src/filters/roll/roll_left.rs b/crates/nu-command/src/filters/roll/roll_left.rs index 94bbaa12aa..19c0957b6c 100644 --- a/crates/nu-command/src/filters/roll/roll_left.rs +++ b/crates/nu-command/src/filters/roll/roll_left.rs @@ -16,6 +16,10 @@ impl Command for RollLeft { "roll left" } + fn search_terms(&self) -> Vec<&str> { + vec!["rotate", "shift", "move", "column"] + } + fn signature(&self) -> Signature { Signature::build(self.name()) .named( diff --git a/crates/nu-command/src/filters/roll/roll_right.rs b/crates/nu-command/src/filters/roll/roll_right.rs index 384cfef707..e6759e725e 100644 --- a/crates/nu-command/src/filters/roll/roll_right.rs +++ b/crates/nu-command/src/filters/roll/roll_right.rs @@ -16,6 +16,10 @@ impl Command for RollRight { "roll right" } + fn search_terms(&self) -> Vec<&str> { + vec!["rotate", "shift", "move", "column"] + } + fn signature(&self) -> Signature { Signature::build(self.name()) .named( diff --git a/crates/nu-command/src/filters/roll/roll_up.rs b/crates/nu-command/src/filters/roll/roll_up.rs index f92923bd54..38b843fe00 100644 --- a/crates/nu-command/src/filters/roll/roll_up.rs +++ b/crates/nu-command/src/filters/roll/roll_up.rs @@ -16,6 +16,10 @@ impl Command for RollUp { "roll up" } + fn search_terms(&self) -> Vec<&str> { + vec!["rotate", "shift", "move", "row"] + } + fn signature(&self) -> Signature { Signature::build(self.name()) .named("by", SyntaxShape::Int, "Number of rows to roll", Some('b'))