No description
| libdingus | ||
| config.ini | ||
| config.odin | ||
| FiraCode-Regular.LICENSE | ||
| FiraCode-Regular.ttf | ||
| image.odin | ||
| init.odin | ||
| input.odin | ||
| iv.rdi | ||
| LICENSE | ||
| main.odin | ||
| README.md | ||
| render.odin | ||
| screenshot.png | ||
iv - image viewer
This repo contains an in-development simple image viewer written in Odin. As development is ongoing, many things are subject to change.
Current features:
- Loads static and animated images through SDL2_image.
- Uses vim-like key bindings. Keys can be rebound in
config.iniand are loaded at runtime. Key names must match Odin's SDL2Keycodeenum. See the included config for examples. - Displays a status bar and optional on-screen key hints. Their text size and opacity are configurable.
- Supports fit, fill, original-size, and manual zoom modes.
- Supports keyboard movement, mouse panning, and mouse-wheel zooming.
Building requires Odin, SDL2, SDL2_image, and SDL2_ttf:
odin build .
./iv path/to/image
Configuration is loaded from config.ini in the current directory or $XDG_CONFIG_HOME/iv/config.ini (usually ~/.config/iv/config.ini). The current directory takes precedence.
The UI font can be replaced at compile time with -define:FONT=<font_file>. Fira Code is included as the default.
Screenshot:
