Closed neolooong closed 10 months ago
Hi,
Im not sure what this means. You mean removing the last /venv
part from the listed venvs in Telescope to make it visually nicer?
pyenv install 3.10.12
install python 3.10.12 in ~/.pyenv/versions
.
pyenv virtualenv 3.10.12 venv-31012
create a virtual environment in ~/.pyenv/versions
.
I mean, only venv-31012
is virtual environment. VenvSelector should not display 3.10.12
Oh ok, I see what you mean now. Thank you. Im not too familiar with pyenv, and I didnt know it would install python itself inside the same path. I will see what i can do. :)
This is fixed now in the latest commit. The plugin excludes any 3.*.*
paths when searching for venv managers. Its not a perfect solution but fd
doesnt understand regexp in excluding paths, so this was the best I could do without having my own filter function and do a secondary filter inside lua.
Hopefully people dont name their managed venvs in the same way as python versions, because then they wont show up.
Im closing this but feel free to reopen if they still show up for you. :)
Maybe we can check pyvenv.cfg
if exists in the venv folder.
You mean to only exclude the path if there is a pyvenv.cfg in the venv folder?
I think the plugin should only show venv directory.