From nushell/nushell#16860, we can tell that there's something to optimize.
Steps to reproduce
def completion [] {
['"first item"' '"second item"']
}
export def foo [c: string@completion] {
print $c
}
foo <tab> returns those 2 items with the common prefix "
- Reedline updates the line text to
foo "
- During menu redraw (maybe?), the completion results are updated to those for the new text
foo ", which is totally unnecessary in theory.
It could potentially be a dealbreaker for time costing external completer.
From nushell/nushell#16860, we can tell that there's something to optimize.
Steps to reproduce
foo <tab>returns those 2 items with the common prefix"foo "foo ", which is totally unnecessary in theory.It could potentially be a dealbreaker for time costing external completer.