Settings

Theme

Show HN: ZigZag – A Bubble Tea-Inspired TUI Framework for Zig

github.com

7 points by meszmate 4 months ago · 1 comment · 1 min read

Reader

I built this because Zig lacked a proper TUI framework. Inspired by Go's Bubble Tea/Lipgloss. Feedback welcome.

Zambyte 4 months ago

This is really cool! I have been looking for something exactly like this. One point of feedback is that I noticed you use a sort of builder pattern by chaining methods to set certain fields on structs. Do you have a specific reason for doing that? I think it would be more idiomatic to just set the fields directly, overriding default values.

Another thing: have you played around with 0.16.0 at all yet? I think it's worth checking out if not. It'll have a lot of implications on what you're doing. If you want a hand on making a 0.16.0 branch, I'd be interested in helping out :)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection