File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ The solution to this involves manually checking the value to filter it out:
9595let carapace_completer = {|spans: list<string>|
9696 carapace $spans.0 nushell ...$spans
9797 | from json
98- | if ($in | default [] | where value == $"($spans | last)ERR" | is-empty ) { $in } else { null }
98+ | if ($in | default [] | any {|| $in.display | str starts-with "ERR"} ) { null } else { $in }
9999}
100100```
101101
@@ -109,7 +109,7 @@ let fish_completer = ...
109109let carapace_completer = {|spans: list<string>|
110110 carapace $spans.0 nushell ...$spans
111111 | from json
112- | if ($in | default [] | where value =~ '^-.*ERR$' | is-empty ) { $in } else { null }
112+ | if ($in | default [] | any {|| $in.display | str starts-with "ERR"} ) { null } else { $in }
113113}
114114
115115# This completer will use carapace by default
You can’t perform that action at this time.
0 commit comments