nushell/crates/nu-cli/src
Jason Gedge 9f85b10fcb
Add method to convert ClassifiedBlock into completion locations. (#2316)
The completion engine maps completion locations to spans on a line, which
indicate whther to complete a command name, flag name, argument, and so on.

Initial implementation is simplistic, with some rough edges, since it relies
heavily on the parser's interpretation. For example

    du -

if asking for completions, `-` is considered a positional argument by the
parser, but the user is likely looking for a flag. These scenarios will be
addressed in a series of progressive enhancements to the engine.
2020-08-21 15:37:51 -04:00
..
commands Sleep command (#2381) 2020-08-22 05:51:29 +12:00
completion Add method to convert ClassifiedBlock into completion locations. (#2316) 2020-08-21 15:37:51 -04:00
env Add wasm sample for CI (#2372) 2020-08-19 07:34:05 +12:00
evaluate Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
shell Add method to convert ClassifiedBlock into completion locations. (#2316) 2020-08-21 15:37:51 -04: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 Add method to convert ClassifiedBlock into completion locations. (#2316) 2020-08-21 15:37:51 -04:00
commands.rs Sleep command (#2381) 2020-08-22 05:51:29 +12:00
context.rs Refactor all completion logic into NuCompleter (#2252) 2020-07-25 11:39:12 +12:00
deserializer.rs Sleep command (#2381) 2020-08-22 05:51:29 +12:00
documentation.rs Auto-Generate Documentation for nushell.com (#2139) 2020-07-18 10:22:43 +12:00
env.rs WIP: Per directory env-variables (#1943) 2020-06-08 19:55:25 +12:00
examples.rs added ansi example (#2230) 2020-07-20 18:33:39 -05: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 Move nu-data out of nu-cli (#2369) 2020-08-18 19:00:02 +12:00
path.rs Fix cd'ing to symlinked directories (#1651) 2020-04-25 18:09:00 +12: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