nushell/crates/nu-cli/src/shell
Jason Gedge 860c2a606d
More bug fixes for completions (#2476)
* Use the cursor position for the span when between locations.

This fixes a bug where completing

    ls <TAB>

would result in replacing the entire line.

* Revert to the default update implementation.

Replacing the length of the elected value was intended to do replacement when
one moves inside a quote. The problem is that a long elected suggestion could
replace bits of a pipeline that are after the cursor. For example:

    ls <TAB> | get name | str collect
2020-09-01 16:10:46 +12:00
..
completer.rs Improve support for completing within quotes. (#2474) 2020-09-01 14:13:00 +12:00
filesystem_shell.rs tolerate os error while executing ls command (#2466) 2020-09-01 05:14:37 +12:00
help_shell.rs Add method to convert ClassifiedBlock into completion locations. (#2316) 2020-08-21 15:37:51 -04:00
helper.rs More bug fixes for completions (#2476) 2020-09-01 16:10:46 +12:00
palette.rs Add ThemedPalette (#1873) 2020-06-26 16:40:12 +12:00
shell.rs Refactor all completion logic into NuCompleter (#2252) 2020-07-25 11:39:12 +12:00
shell_manager.rs Refactor all completion logic into NuCompleter (#2252) 2020-07-25 11:39:12 +12:00
value_shell.rs Add method to convert ClassifiedBlock into completion locations. (#2316) 2020-08-21 15:37:51 -04:00