Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable widget #1851

Open
svoop opened this issue Jan 25, 2025 · 0 comments
Open

Environment variable widget #1851

svoop opened this issue Jan 25, 2025 · 0 comments

Comments

@svoop
Copy link

svoop commented Jan 25, 2025

Discussed in #1760

Originally posted by svoop January 17, 2025
Here's an idea for a new type of widget: environment variables.

Given you have an environment variable like RUBYOPT which (among many other things) can be used to set the level of verbosity of Ruby. You'd like to manage three states from the widget:

  • suppress all warnings: RUBYOPT="-W0"
  • show some warnings: RUBYOPT="-W:no-deprecated -W:no-experimental"
  • show all warnings: RUBYOPT=""

The widget configuration would define two or more states and you cycle through them every time you click on the widget. Each state can have a different icon and/or icon color to visualize the current state. And with each state, one (or more) environment variable settings are associated.

This certainly takes some more thinking such as: What happens if the environment variable is already set, overwrite? Merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant