diff --git a/crates/nu-command/src/core_commands/export.rs b/crates/nu-command/src/core_commands/export.rs index 0f0f8687b..6dc7c5f74 100644 --- a/crates/nu-command/src/core_commands/export.rs +++ b/crates/nu-command/src/core_commands/export.rs @@ -59,4 +59,8 @@ impl Command for ExportCommand { }), }] } + + fn search_terms(&self) -> Vec<&str> { + vec!["module"] + } } diff --git a/crates/nu-command/src/core_commands/export_alias.rs b/crates/nu-command/src/core_commands/export_alias.rs index 51ebd2711..9f3106493 100644 --- a/crates/nu-command/src/core_commands/export_alias.rs +++ b/crates/nu-command/src/core_commands/export_alias.rs @@ -51,4 +51,8 @@ impl Command for ExportAlias { result: None, }] } + + fn search_terms(&self) -> Vec<&str> { + vec!["aka", "abbr", "module"] + } } diff --git a/crates/nu-command/src/core_commands/export_def.rs b/crates/nu-command/src/core_commands/export_def.rs index 6b06e677f..1ab327100 100644 --- a/crates/nu-command/src/core_commands/export_def.rs +++ b/crates/nu-command/src/core_commands/export_def.rs @@ -55,4 +55,8 @@ impl Command for ExportDef { }), }] } + + fn search_terms(&self) -> Vec<&str> { + vec!["module"] + } } diff --git a/crates/nu-command/src/core_commands/export_def_env.rs b/crates/nu-command/src/core_commands/export_def_env.rs index c84dca280..4ea55cd1e 100644 --- a/crates/nu-command/src/core_commands/export_def_env.rs +++ b/crates/nu-command/src/core_commands/export_def_env.rs @@ -81,4 +81,8 @@ export def-env cd_with_fallback [arg = ""] { }), }] } + + fn search_terms(&self) -> Vec<&str> { + vec!["module"] + } } diff --git a/crates/nu-command/src/core_commands/export_extern.rs b/crates/nu-command/src/core_commands/export_extern.rs index fd7295f97..b718a80af 100644 --- a/crates/nu-command/src/core_commands/export_extern.rs +++ b/crates/nu-command/src/core_commands/export_extern.rs @@ -47,4 +47,8 @@ impl Command for ExportExtern { result: None, }] } + + fn search_terms(&self) -> Vec<&str> { + vec!["signature", "module", "declare"] + } } diff --git a/crates/nu-command/src/core_commands/export_use.rs b/crates/nu-command/src/core_commands/export_use.rs index 933342611..48676a647 100644 --- a/crates/nu-command/src/core_commands/export_use.rs +++ b/crates/nu-command/src/core_commands/export_use.rs @@ -53,4 +53,8 @@ impl Command for ExportUse { }), }] } + + fn search_terms(&self) -> Vec<&str> { + vec!["reexport", "import", "module"] + } }