nushell/crates/nu-source/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
..
lib.rs Bump a lot of deps (#1560) 2020-04-07 19:51:17 +12:00
meta.rs Add method to convert ClassifiedBlock into completion locations. (#2316) 2020-08-21 15:37:51 -04:00
pretty.rs Match cleanup (#2294) 2020-08-04 05:43:27 +12:00
term_colored.rs Extract nu_source into a crate 2019-11-25 07:37:33 -08:00
text.rs Extract nu_source into a crate 2019-11-25 07:37:33 -08:00