From 8a812cf03cdcbc33217807159415c4bd4addc1f9 Mon Sep 17 00:00:00 2001 From: mike <98623181+1Kinoti@users.noreply.github.com> Date: Sun, 6 Nov 2022 20:11:04 +0300 Subject: [PATCH] added some search-terms to the `platform` category (#7021) * added some search-terms to the `platform` category * removed the redundant `sleep` search-term * removed the redundant `gradients` search-term --- crates/nu-command/src/platform/ansi/ansi_.rs | 4 ++++ crates/nu-command/src/platform/kill.rs | 4 ++++ crates/nu-command/src/platform/sleep.rs | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/crates/nu-command/src/platform/ansi/ansi_.rs b/crates/nu-command/src/platform/ansi/ansi_.rs index 6cce564dc8..6750c289ab 100644 --- a/crates/nu-command/src/platform/ansi/ansi_.rs +++ b/crates/nu-command/src/platform/ansi/ansi_.rs @@ -307,6 +307,10 @@ Format: # ] } + fn search_terms(&self) -> Vec<&str> { + vec!["text-color", "text-style", "colors"] + } + fn run( &self, engine_state: &nu_protocol::engine::EngineState, diff --git a/crates/nu-command/src/platform/kill.rs b/crates/nu-command/src/platform/kill.rs index 14e52d1f55..e97cd1f9e8 100644 --- a/crates/nu-command/src/platform/kill.rs +++ b/crates/nu-command/src/platform/kill.rs @@ -43,6 +43,10 @@ impl Command for Kill { ) } + fn search_terms(&self) -> Vec<&str> { + vec!["stop", "end", "close"] + } + fn run( &self, engine_state: &EngineState, diff --git a/crates/nu-command/src/platform/sleep.rs b/crates/nu-command/src/platform/sleep.rs index 9591de75a3..4d883ab76c 100644 --- a/crates/nu-command/src/platform/sleep.rs +++ b/crates/nu-command/src/platform/sleep.rs @@ -31,6 +31,10 @@ impl Command for Sleep { .category(Category::Platform) } + fn search_terms(&self) -> Vec<&str> { + vec!["delay", "wait", "timer"] + } + fn run( &self, engine_state: &EngineState,