Add search terms to roll commands (#6761)

This commit is contained in:
Russell Chan 2022-10-16 07:04:22 -04:00 committed by GitHub
parent a498234f1d
commit ec8e57cde9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 0 deletions

View file

@ -11,6 +11,10 @@ impl Command for Roll {
"roll" "roll"
} }
fn search_terms(&self) -> Vec<&str> {
vec!["rotate", "shift", "move"]
}
fn signature(&self) -> Signature { fn signature(&self) -> Signature {
Signature::build(self.name()).category(Category::Filters) Signature::build(self.name()).category(Category::Filters)
} }

View file

@ -16,6 +16,10 @@ impl Command for RollDown {
"roll down" "roll down"
} }
fn search_terms(&self) -> Vec<&str> {
vec!["rotate", "shift", "move", "row"]
}
fn signature(&self) -> Signature { fn signature(&self) -> Signature {
Signature::build(self.name()) Signature::build(self.name())
.named("by", SyntaxShape::Int, "Number of rows to roll", Some('b')) .named("by", SyntaxShape::Int, "Number of rows to roll", Some('b'))

View file

@ -16,6 +16,10 @@ impl Command for RollLeft {
"roll left" "roll left"
} }
fn search_terms(&self) -> Vec<&str> {
vec!["rotate", "shift", "move", "column"]
}
fn signature(&self) -> Signature { fn signature(&self) -> Signature {
Signature::build(self.name()) Signature::build(self.name())
.named( .named(

View file

@ -16,6 +16,10 @@ impl Command for RollRight {
"roll right" "roll right"
} }
fn search_terms(&self) -> Vec<&str> {
vec!["rotate", "shift", "move", "column"]
}
fn signature(&self) -> Signature { fn signature(&self) -> Signature {
Signature::build(self.name()) Signature::build(self.name())
.named( .named(

View file

@ -16,6 +16,10 @@ impl Command for RollUp {
"roll up" "roll up"
} }
fn search_terms(&self) -> Vec<&str> {
vec!["rotate", "shift", "move", "row"]
}
fn signature(&self) -> Signature { fn signature(&self) -> Signature {
Signature::build(self.name()) Signature::build(self.name())
.named("by", SyntaxShape::Int, "Number of rows to roll", Some('b')) .named("by", SyntaxShape::Int, "Number of rows to roll", Some('b'))