nushell/crates/nu-cli/src/completions
Darren Schroeder ef7fbf4bf9
Revert "Allow NU_LIBS_DIR and friends to be const" (#8501)
Reverts nushell/nushell#8310

In anticipation that we may want to revert this PR. I'm starting the
process because of this issue.

This stopped working
```
let-env NU_LIB_DIRS = [
    ($nu.config-path | path dirname | path join 'scripts')
    'C:\Users\username\source\repos\forks\nu_scripts'
    ($nu.config-path | path dirname)
]
```
You have to do this now instead.
```
const NU_LIB_DIRS = [
    'C:\Users\username\AppData\Roaming\nushell\scripts'
    'C:\Users\username\source\repos\forks\nu_scripts'
    'C:\Users\username\AppData\Roaming\nushell'
]
```

In talking with @kubouch, he was saying that the `let-env` version
should keep working. Hopefully it's a small change.
2023-03-17 09:33:24 -05:00
..
base.rs Add MatchAlgorithm for completion suggestions (#5244) 2022-04-23 10:01:19 -05:00
command_completions.rs Resolve Clippy warnings inside tests. (#8315) 2023-03-04 14:58:20 +01:00
completer.rs Resolve Clippy warnings inside tests. (#8315) 2023-03-04 14:58:20 +01:00
completion_options.rs Update path completions to handle spaces (#5419) 2022-05-03 12:37:38 +12:00
custom_completions.rs Revert "Allow NU_LIBS_DIR and friends to be const" (#8501) 2023-03-17 09:33:24 -05:00
directory_completions.rs files and directory completions now use ascending ordering rather than Levenshtein. #8023 (#8085) 2023-02-22 13:03:48 +00:00
dotnu_completions.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
file_completions.rs files and directory completions now use ascending ordering rather than Levenshtein. #8023 (#8085) 2023-02-22 13:03:48 +00:00
flag_completions.rs Don't resuggest accepted completions (#5369) 2022-05-02 11:35:37 +02:00
mod.rs Update path completions to handle spaces (#5419) 2022-05-03 12:37:38 +12:00
variable_completions.rs LazyRecord (#7619) 2023-01-18 19:27:26 -08:00