nushell/crates/nu-cli
Richard 0de289f6b7
Feature/refactor completion options (#5228)
* Copy completion filter to custom completions

* Remove filter function from completer

This function was a no-op for FileCompletion and CommandCompletion.
Flag- and VariableCompletion just filters with `starts_with` which
happens in both completers anyway and should therefore also be a no-op.
The remaining use case in CustomCompletion was moved into the
CustomCompletion source file.

Filtering should probably happen immediately while fetching completions
to avoid unnecessary memory allocations.

* Add get_sort_by() to Completer trait

* Remove CompletionOptions from Completer::fetch()

* Fix clippy lints

* Apply Completer changes to DotNuCompletion
2022-04-19 13:59:10 -05:00
..
src Feature/refactor completion options (#5228) 2022-04-19 13:59:10 -05:00
Cargo.toml update miette and switch to GenericErrors (#5222) 2022-04-19 00:34:10 +12:00
LICENSE Include license text in all crates (#5094) 2022-04-08 10:47:13 +02:00