Rylee Lyman
e2c19c3c8f
fix: update to zig 0.13, broken test
2024-06-09 04:53:58 -07:00
Tim Culverhouse
5a438e54f1
update GapBuffer and gitignore
...
In preparation for zig 0.13.0
2024-06-07 06:38:45 -05:00
CJ van den Berg
d21940bdbd
build: make most dependencies optional
2024-06-05 07:31:46 -07:00
Tim Culverhouse
7f29e9f720
update xev
2024-05-31 18:51:06 -05:00
Tim Culverhouse
bbd9184e00
loop: add an xev loop implementation
...
This loop adds an xev.File wrapper called TtyWatcher which delivers
events to the users callback. Note that this implementation does not
handle any of the writes. Writes are always safe in the main thread, so
we let users decide how they will schedule those (buffered writers, xev
writes, etc)
2024-05-30 09:43:48 -05:00
Jari Vetoniemi
ba4caa0767
build.zig.zon: fix paths
...
Use single "src" element in paths to include everything under src/
The Tty.zig was renamed to tty.zig and that was not picked up
2024-05-30 06:38:38 -05:00
Tim Culverhouse
d7bc2c451b
build: use explicit paths in build.zig.zon
2024-05-22 13:56:25 -05:00
Tim Culverhouse
852e2d1db3
readme: update zig version
2024-04-30 17:21:39 -05:00
Tim Culverhouse
8a71cd4c85
zg: complete replacement of ziglyph with zg
2024-04-29 14:00:08 -05:00
Tim Culverhouse
9fec6f122b
core: replace ziglyph.GraphemeIterator with zg version
...
ziglyph is being replaced by zg. Replace all calls to ziglyph grapheme
iterator with the zg version
2024-04-29 13:03:01 -05:00
Tim Culverhouse
606272f471
widgets: add initial nvim implementation
2024-04-16 16:06:14 -08:00
Tim Culverhouse
6301fc6a0f
build: add minimum_zig_version
2024-04-01 16:15:18 -05:00
Tim Culverhouse
612e298d72
dep: update ziglyph
...
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-03-21 19:13:56 -05:00
Tim Culverhouse
740f83c07f
dep: use upstream zigimg
2024-03-21 19:10:09 -05:00
Rylee Alanza Lyman
0798182012
feat: adds gap_buffer.zig
for TextInput
( #6 )
...
Use a gap buffer for the `TextInput` widget instead of an `ArrayList`.
2024-03-12 06:38:23 -05:00
Tim Culverhouse
5560545b54
update ziglyph
...
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-03-05 15:45:07 -06:00
Tim Culverhouse
9968735795
zigimg: use fork until PR merged
...
Use my fork of zigimg with the updated zlib api. Revert back to
zigimg/zigimg once that PR is merged.
2024-02-24 08:14:44 -06:00
Jora Troosh
4a463cfa3a
refactor: make code more idiomatic
...
- Added standard .gitattributes file for Zig projects.
- Reworked build.zig a little, hopefully it's a bit clearer. Also, now zig build will run all steps.
- outer: while in examples was redundant since there's only one loop to break from. switch expressions don't allow breaking from them, so breaking is only for loops, i.e. while and for.
- When returning a struct instance from a function, the compiler infers the return type from function signature, so instead of return MyType{...}; , it's more idiomatic to write return .{...};.
- Logging adds a new line by default, so you don't usually need to write \n like here: log.debug("event: {}\r\n", .{event});.
2024-02-11 12:59:33 -06:00
Tim Culverhouse
a733860a21
add pathological example as a terminal perf test
2024-02-09 12:27:22 -06:00
Tim Culverhouse
a355d7519a
fix name
...
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-01-28 21:36:30 -06:00
Tim Culverhouse
5c9ce93a63
update ziglyph
...
update ziglyph to include proper default text emoji with VS16 selector
widths
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-01-28 21:35:31 -06:00
Tim Culverhouse
c99dffaecf
WIP: images
...
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-01-25 13:32:22 -06:00
Tim Culverhouse
3d6f42a66e
build: remove libxev dependency
...
We aren't using this anymore
2024-01-24 11:54:58 -06:00
Tim Culverhouse
b9564b7db8
initial commit
...
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2024-01-17 21:58:03 -06:00