nushell/crates/nu-cli/src/completions
Herlon Aguiar 4d7b86f278
nu-cli: added tests for file completions (#5232)
* nu-cli: added tests for file completions

* test adding extra sort

* 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

* add os to $nu based on rust's understanding (#5243)

* add os to $nu based on rust's understanding

* add a few more constants

Co-authored-by: Richard <Tropid@users.noreply.github.com>
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2022-04-20 16:54:00 +12:00
..
base.rs Feature/refactor completion options (#5228) 2022-04-19 13:59:10 -05:00
command_completions.rs Feature/refactor completion options (#5228) 2022-04-19 13:59:10 -05:00
completer.rs Feature/refactor completion options (#5228) 2022-04-19 13:59:10 -05:00
completion_options.rs Feature/refactor completion options (#5228) 2022-04-19 13:59:10 -05:00
custom_completions.rs Feature/refactor completion options (#5228) 2022-04-19 13:59:10 -05:00
dotnu_completions.rs Feature/refactor completion options (#5228) 2022-04-19 13:59:10 -05:00
file_completions.rs nu-cli: added tests for file completions (#5232) 2022-04-20 16:54:00 +12:00
flag_completions.rs Feature/refactor completion options (#5228) 2022-04-19 13:59:10 -05:00
mod.rs nu-cli/completions: completion for use and source (#5210) 2022-04-19 00:59:13 +12:00
variable_completions.rs Feature/refactor completion options (#5228) 2022-04-19 13:59:10 -05:00