A minimal plain-text editor built with Zig and GTK4.
- Zig >= 0.16.0
- GTK4 development libraries
pkg-configin PATH
brew install zig gtk4sudo apt install zig libgtk-4-devzig build runOr build first, then run separately:
zig build
./zig-out/bin/te| Shortcut | Action |
|---|---|
| Ctrl+N | New tab |
| Ctrl+O | Open file (new tab) |
| Ctrl+S | Save file |
| Ctrl+W | Close current tab |
| Ctrl+Tab | Next tab |
| Ctrl+Shift+Tab | Previous tab |
GTK4 headers cannot be translated by Zig 0.16's translate-c (see
upstream issue).
This project works around the limitation by declaring the ~45 needed
GTK4/GLib C functions as extern fn with opaque pointer types — no
header translation or @cImport required.