You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Normally, when working on Python projects, I use a venv. The name is either .venv or python-31X, depending on the tooling. Still, I have one venv per project and normally it's automatically activated (by direnv).
I wish to know when the machinery is broken and no venv is activated (or the project is so new I didn't configure one yet).
Describe the solution you'd like
Since the names of my venvs are always quite predictable (and I don't feel that special among the pythonists), I think that it would be fantastic to have something to mean that "no venv is activated". That would convey the same information of the activated virtualenv for me, but potentially in a more compact way.
In particular we could add a new variable to the python config, something like no_virtualenv, empty (or not?) by default, and the format may become 'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\)$no_virtualenv )]($style)'.
Describe alternatives you've considered
Leaving everything like it is now gives me all the information, but I'd like to keep the prompt a little more concise if possible.
Let me know if you like the idea, I'd go for a PR 🙂
The text was updated successfully, but these errors were encountered:
Feature Request
Is your feature request related to a problem? Please describe.
Normally, when working on Python projects, I use a venv. The name is either
.venv
orpython-31X
, depending on the tooling. Still, I have one venv per project and normally it's automatically activated (by direnv).I wish to know when the machinery is broken and no venv is activated (or the project is so new I didn't configure one yet).
Describe the solution you'd like
Since the names of my venvs are always quite predictable (and I don't feel that special among the pythonists), I think that it would be fantastic to have something to mean that "no venv is activated". That would convey the same information of the activated virtualenv for me, but potentially in a more compact way.
In particular we could add a new variable to the python config, something like
no_virtualenv
, empty (or not?) by default, and the format may become'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\)$no_virtualenv )]($style)'
.Describe alternatives you've considered
Leaving everything like it is now gives me all the information, but I'd like to keep the prompt a little more concise if possible.
Let me know if you like the idea, I'd go for a PR 🙂
The text was updated successfully, but these errors were encountered: