nushell/crates/nu-parser/src
Andrés N. Robalino 03c9eaf005
Variable completions. (#3666)
In Nu we have variables (E.g. $var-name) and these contain `Value` types.
This means we can bind to variables any structured data and column path syntax
(E.g. `$variable.path.to`) allows flexibility for "querying" said structures.

Here we offer completions for these. For example, in a Nushell session the
variable `$nu` contains environment values among other things. If we wanted to
see in the screen some environment variable (say the var `SHELL`) we do:

```
> echo $nu.env.SHELL
```

with completions we can now do: `echo $nu.env.S[\TAB]` and we get suggestions
that start at the column path `$nu.env` with vars starting with the letter `S`
in this case `SHELL` appears in the suggestions.
2021-06-23 19:21:39 +12:00
..
lex Only discard command comment if prev token was comment (#3628) 2021-06-17 14:11:05 +12:00
parse Def cleanup (#3580) 2021-06-09 10:06:44 +12:00
errors.rs Getting ready for multiline scripts (#2737) 2020-11-10 05:27:07 +13:00
flag.rs Fix a bunch of future clippy warnings (#3586) 2021-06-10 07:08:12 +12:00
lib.rs Variable completions. (#3666) 2021-06-23 19:21:39 +12:00
parse.rs Add built-in var to refer to pipeline values (#3661) 2021-06-21 12:31:01 +12:00
scope.rs Variable completions. (#3666) 2021-06-23 19:21:39 +12:00
shapes.rs Fix a bunch of future clippy warnings (#3586) 2021-06-10 07:08:12 +12:00