virtualfish icon indicating copy to clipboard operation
virtualfish copied to clipboard

Add autocompletions for `vf new -p` and `vf upgrade -p` with asdf or pyenv installs

Open sbaack opened this issue 2 years ago • 0 comments

This commit adds autocompletions for vf new -p and vf upgrade -p to list version numbers from Python installations in asdf or pyenv. Those autocompletions are off by default and can be activated by setting a universal variable named VIRTUALFISH_PYVERSION_COMPLETION to either asdf or pyenv.

Note that this only seems to work with Fish's universal variable, I guess because virtualfish's autocompletions are loaded before config.fish is sourced. Also note that turning this on will deactivate autocompletions of files and directories for vf new -p and vf upgrade -p, but I think it's an acceptable trade-off.

sbaack avatar Apr 01 '22 10:04 sbaack