Add search terms for all?, any?, length, and keybindings (#5665)

* Add search terms for `all?`

JavaScript has `Array.every` similar to `all?`

* Add search terms for `any?`

JavaScript has `Array.some` similar to `any?`

* Add search terms for `length`

Count, `len()`, and `size`/`sizeof` in widely-known programming languages are equivalent to `length`

* Add search terms for `keybindings`

Shortcut and hotkey are common synonyms (especially in web and GUI land) for keybindings.
This commit is contained in:
Evan Platzer
2022-05-27 10:38:54 -04:00
committed by GitHub
parent 545b1dcd94
commit 6365ba0286
4 changed files with 16 additions and 0 deletions

View File

@ -21,6 +21,10 @@ impl Command for Keybindings {
"Keybindings related commands"
}
fn search_terms(&self) -> Vec<&str> {
vec!["shortcut", "hotkey"]
}
fn run(
&self,
engine_state: &EngineState,