View Single Post
Old 08-21-2025, 05:07 PM   #1
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 866
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
[Plugin] EnvVarEditor - GUI editor for Sigil's environment variables

Updated: August 21, 2025
Current Version: "0.1.0"
Status: Stable
Plugin type: edit

Plugin icon:


How it works:
This plugin provides a simple GUI editor for Sigil's env-vars.txt file.
Normally, editing this file requires manual text editing, which can be error-prone. With EnvVarEditor, you can easily view, add, remove, and update supported environment variables directly from within Sigil.

The plugin:
  • Lists all known Sigil environment variables with proper input widgets (checkboxes, text fields, spinboxes).
  • Supports validation of values (e.g., numeric ranges, valid hex colors).
  • Allows removing variables entirely from env-vars.txt if they are not needed.
  • Preserves any custom or unknown entries that already exist in the file.
  • Prints a short summary of what was written back to the file after saving.

Installation:
1. Select Manage Plugins from the Plugins menu. In the Manage Plugins dialog box, select Use Bundled Python, if it isn't already selected. (If your Sigil version doesn't have a Use Bundled Python option, click one of the Auto buttons to detect the path or Set to manually select the Python interpreter path.)
2. Click Add Plugin and select EnvVarEditor_v0.X.Y.zip. This will install the EnvVarEditor plugin, which you can then run via Plugins > Edit > EnvVarEditor.

Issues:
At this stage no major issues are known. Please report bugs or suggestions in this thread.
Keep in mind that some values will be validated (e.g., integers must be within allowed ranges, colors must be in the format #rrggbb). Invalid values will trigger a warning message and will not be saved until corrected.

OS Requirements:
Windows/Linux/OS X.
Tested on Windows 10 and 11 with Sigil 2.6.2 prerelease. Should also work on Linux and macOS.
*** Linux users will have to make sure that the PySide6 module is present if it's not already. ***

Sigil Requirements:
Minimum version of Sigil: 2.6.2

Change Log:
  • v0.1.0 - First public release

License/Copying: GNU LGPL Version 2 or Version 3 your choice. Any other license terms are only available directly from the author in writing.
Attached Files
File Type: zip EnvVarEditor_v0.1.0.zip (12.9 KB, 7 views)

Last edited by BeckyEbook; 08-21-2025 at 05:10 PM.
BeckyEbook is offline   Reply With Quote