HuG is a cross-platform (Windows, Linux, macOS) text and code snippet manager designed for developer productivity.
- Download the archive for your platform:
hug-windows.zip,hug-linux.zip, orhug-macos.zip. - Extract the archive.
- Run the
hug(orhug.exeon Windows) executable inside the extracted folder.
- Clone the repository.
- Create a virtual environment:
python -m venv .venv && source .venv/bin/activate. - Install dependencies:
pip install -r requirements.txt. - Run:
python -m hug.
- System Tray: Quick access to snippets via context menu.
- Floating Palette: Summon with
Ctrl+Shift+Space(configurable) to search and insert snippets. - Snippet Management: JSON-based snippet libraries.
- Live Reload: Edit JSON files and see changes instantly.
- Cross-Platform: Built with Qt (PySide6).
See dev-docs/HuG-02-IMPLEMENTATION-GUIDE.md for details.
PyInstaller does not cross-compile: you must run the build on the OS
you're targeting (build on Windows to get a Windows exe, on Linux for a
Linux binary, on macOS for a macOS binary). The build produces a native
executable in dist/hug/ plus a dist/hug-<platform>.zip archive
(hug-windows.zip, hug-linux.zip, or hug-macos.zip).
- Create and activate a platform-specific venv:
- Linux/macOS:
python -m venv venv && source venv/bin/activate - Windows:
python -m venv venv-winthenvenv-win\Scripts\activate(orsource venv-win/Scripts/activatein Git Bash)
- Linux/macOS:
- Install runtime and dev dependencies (dev deps include PyInstaller):
pip install -r requirements.txt -r requirements-dev.txt - Run the build script:
python scripts/build.py
The script auto-detects the current OS and names the output archive
accordingly. If PyInstaller isn't installed, it'll tell you rather than
failing with a raw FileNotFoundError.
- Linux: needs Xlib available for
pynput's X11 backend (already pulled in as a hidden import inpackage/hug.spec); Wayland-only setups may need XWayland for global hotkeys to work. - Windows: build from a
cmd/PowerShell or Git Bash shell with the venv activated sopythonresolves to the venv's interpreter. - macOS: not yet verified — the spec currently produces a onedir
app, not a signed
.app/.dmgbundle. Treat macOS builds as best-effort until that's set up.

