From 3b016843b92be4440241751e24722117fecca57a Mon Sep 17 00:00:00 2001 From: Jack Wright Date: Fri, 16 Dec 2022 09:50:05 -0800 Subject: [PATCH] "fixing completions that contain a /" --- nushell_completions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nushell_completions.go b/nushell_completions.go index c03ea8d..fe9782d 100644 --- a/nushell_completions.go +++ b/nushell_completions.go @@ -101,7 +101,7 @@ let cobra_completer = {|spans| # directive and directive_str are for posterity let stdout_lines = ($result.stdout | lines) let directive = ($stdout_lines | last | str trim | str replace ":" "" | into int) - let completions = ($stdout_lines | drop | parse -r '([\w\-\.:\+\=]*)\t?(.*)' | rename value description) + let completions = ($stdout_lines | drop | parse -r '([\w\-\.:\+\=\/]*)\t?(.*)' | rename value description) let completions = if $fuzzy { $completions | where $it.value =~ $last_span