nushell/crates/nu-cli/src
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
..
commands Add examples to uniq (#2472) 2020-09-01 14:52:55 +12:00
completion More bug fixes for completions (#2476) 2020-09-01 16:10:46 +12:00
env Extract out history parts. 2020-08-27 06:28:18 -05:00
evaluate Add table literals (#2453) 2020-08-30 16:55:33 +12:00
shell More bug fixes for completions (#2476) 2020-09-01 16:10:46 +12:00
stream Add wasm support (#2199) 2020-07-18 13:59:23 +12:00
utils Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
cli.rs Extract out history parts. 2020-08-27 06:28:18 -05:00
commands.rs Slim down cli plugin logic. 2020-08-27 06:28:18 -05:00
context.rs Slim down cli plugin logic. 2020-08-27 06:28:18 -05:00
deserializer.rs Sleep command (#2381) 2020-08-22 05:51:29 +12:00
documentation.rs Sort subcommands in the help text (#2396) 2020-08-24 08:35:16 +12:00
env.rs WIP: Per directory env-variables (#1943) 2020-06-08 19:55:25 +12:00
examples.rs Allow the calculation of bytes and int. (#2160) 2020-08-27 17:44:18 +12:00
format.rs Nu table (#2015) 2020-06-20 15:41:53 +12:00
futures.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
git.rs Bump to 0.18.2. Move starship external. (#2345) 2020-08-14 07:02:45 +12:00
keybinding.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
lib.rs Slim down cli plugin logic. 2020-08-27 06:28:18 -05:00
path.rs Changing the directory to '.' doesn't modify the prompt anymore (#2457) 2020-08-31 05:24:38 +12:00
plugin.rs Slim down cli plugin logic. 2020-08-27 06:28:18 -05:00
prelude.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
shell.rs create Palette trait (#1813) 2020-05-18 05:48:57 +12:00
utils.rs Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00