A simple vulkan-based modal editor written in zig. The project is only for the purposes of learning and is not intended for productive use.
- glfw (lib)
- vulkan (lib)
- freetype2 (lib + headers)
zig build runNOTE: Only tested on linux
Toggle mode: Ctrl-j
Command mode only
- Cursor Up:
k - Cursor Down:
j - Cursor Left:
l - Cursor Right:
h - Scroll Up:
i - Scroll Down:
m
To begin a cli command, press ':' when in command mode.
E.g :w /path/to/file or :q
- Write:
w <filename> - Open:
o <filename> - Quit:
q
- Fixed text buffer size (1MB)
- No syntax highlighting
- Cursor movement differs from standard behaviour (Does not remember previous larger x-position when moving up and down lines)
- Entire vertex buffer is updated when change is detected
- Poor code quality in places
- Hardcoded font (/usr/share/fonts/TTF/Hack-Regular.ttf) and font size (16 pixels)