A def --env
completion does not update the environment when run as a completion
#12801
Labels
completions
Issues related to tab completion
polish
this problem makes nu feel unpolished
unhelpful-error
The error message you observe is not helpful to identify the problem
Describe the bug
I want to cache completion results in
$env
but nushell does not allow this withdev --env
.Here is part of a completion for
git diff tool --tool [COMPLETE-TOOL-HERE
.bug-tools
is the completion function for the--tool
argument and it takes some time for git to respond. I want to cache the output in$env
to make future completions fast.How to reproduce
bug.nu
use bug.nu *
bug --tool <TAB>
bug --tool <TAB>
(a second time)bug_tools
bug_tools
(a second time)Expected behavior
The second invocations of
bug --tool <TAB>
should be significantly faster than the first run.I expect invocation of
bug --tool <TAB>
to behave like this:Screenshots
No response
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: