TL;DR: The beta version is available in the second post. Minimum Sigil version: 2.7.6
I’ve just uploaded a new beta version of the Environment Variables Manager plugin. This update is specifically designed to support the latest changes in Sigil 2.7.6 while also introducing several "Quality of Life" improvements to the user interface.
What's New in v0.1.15 (Beta):
Support for Unsetting Variables (Sigil 2.7.6+): Following the recent Sigil update, you can now explicitly "unset" environment variables. The plugin now supports the new tilde (~) prefix. In the dropdown menu, simply select "Unset", and the variable will be removed from the environment upon the next Sigil launch.
Smarter UI Automation:
- Auto-Check: When you switch a boolean variable to "Set", the checkbox is now automatically checked for you.
- Auto-Focus & Select: When switching a String or Numeric variable to "Set", the plugin now automatically focuses on that input field and selects the existing text. You can start typing immediately – no extra clicks required!
- Cleaner Logic: Improved handling of system-level variables (like SIGIL_PREFS_DIR) to prevent redundant saves when no actual changes were made.
- Refined Tooltips: Building on the great work by @mrprobert, tooltips and labels have been further polished for clarity.
Note for Beta Testers: This version has been tested on my setup, but since it involves new UI logic (signal blocking to prevent feedback loops), I’d appreciate any feedback – especially if you notice any quirks when switching between "Set", "Not set", and "Unset" modes.
The plugin should be stable, but as always with beta software, keep a backup of your env-vars.txt if you have a very complex setup.
Looking forward to your feedback!