add config option to limit external command completions (#6076)

* add config option to limit external command completions

* fmt

* small change

* change name in config

* change name in config again
This commit is contained in:
pwygab
2022-07-20 01:39:50 +08:00
committed by GitHub
parent e5684bc34c
commit ae765c71fd
3 changed files with 24 additions and 12 deletions

View File

@@ -256,6 +256,7 @@ let-env config = {
cd_with_abbreviations: false # set to true to allow you to do things like cd s/o/f and nushell expand it to cd some/other/folder
case_sensitive_completions: false # set to true to enable case-sensitive completions
enable_external_completion: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up my be very slow
max_external_completion_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
# A strategy of managing table view in case of limited space.
table_trim: {