28 Commits

Author SHA1 Message Date
nathanmcrae f38b61e8c1 Remove spurious output 2025-01-14 20:42:55 -08:00
nathanmcrae f55feb0de5 Fix allocation error 2025-01-14 20:42:55 -08:00
nathanmcrae 0d17afe989 Update for zig 0.13 and remove libmagic
20250114T160010
2025-01-14 20:42:54 -08:00
nathanmcrae 934a89e2bf Add TODOs to readme 2025-01-14 20:42:54 -08:00
nathanmcrae 9f5cbc3167 Clean up 2025-01-14 20:42:54 -08:00
nathanmcrae fd95228b1b Add buffer between columns 2025-01-14 20:42:54 -08:00
nathanmcrae 956ab75ebf Update readme 2025-01-14 20:42:54 -08:00
nathanmcrae 6370747ea8 Only display filename, not full path 2025-01-14 20:42:53 -08:00
nathanmcrae cda3c636e2 Add zig-out to .gitignore 2025-01-14 20:42:53 -08:00
nathanmcrae 90437e05e1 Open directories of files
You can pass files / dirs as arguments an they will be opened. The
directories will be searched for text files (as identified by libmagic)
and those text files will be displayed too.
2025-01-14 20:42:53 -08:00
nathanmcrae 0c30bd3ae2 Display multiple files 2025-01-14 20:42:53 -08:00
nathanmcrae a5e5c8e59d Add docmap struct
We want to have an array of docmaps, one for each file and be able to
iterate through them. That way the layout can be done in a single
function.
2025-01-14 20:42:53 -08:00
nathanmcrae ef397ae075 Write file name inline 2025-01-14 20:42:53 -08:00
nathanmcrae a76001e0d4 Finish text render test 2025-01-14 20:42:52 -08:00
nathanmcrae bf1f5822f4 Add SDL TTF for text rendering 2025-01-14 20:42:52 -08:00
nathanmcrae 2349c13b67 Added red mark at end of long line 2025-01-14 20:42:52 -08:00
nathanmcrae e87ca40870 Rename bin to docmap 2025-01-14 20:42:52 -08:00
nathanmcrae 074a828aff zig fmt 2025-01-14 20:42:52 -08:00
nathanmcrae ac6bc6012b Added columns 2025-01-14 20:42:51 -08:00
nathanmcrae 57d011fdd6 First pass at a document map viewer 2025-01-14 20:42:51 -08:00
nathanmcrae fb45fe256f update to latest zig 2025-01-14 20:42:51 -08:00
nathanmcrae d8fec2b4ea update to latest zig 2025-01-14 20:42:51 -08:00
nathanmcrae 10ec26c7b7 update to latest zig 2025-01-14 20:42:51 -08:00
nathanmcrae aaedf032c3 update to latest zig 2025-01-14 20:42:51 -08:00
nathanmcrae 05c9940033 zig has extern unions now 2025-01-14 20:42:50 -08:00
nathanmcrae 67ff60279b update to latest zig 2025-01-14 20:42:50 -08:00
nathanmcrae a0bd68be0f don't free the rwop twice 2025-01-14 20:42:50 -08:00
nathanmcrae d985eed563 initial version 2025-01-14 20:42:50 -08:00