Web site: github.com/ajkachnic/zline
Category: Office
Subcategory: Text Editors
Platform: Linux, BSD, OS X, AIX, Unix-like
License: BSD
Interface: CLI
Wikipedia:
First release: 2021
Zline – a powerful line editor for Zig.
This is a very WIP project, and probably not even ready for hobby usage. the API will probably change a million times before it’s stabilized, so use at your own risk.
Since zline is just one file (zline.zig), the simplest installation option is just downloading the file and putting it into your build setup.
Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Since Zig has easy to use C bindings, why shouldn’t you just use linenoise? Off the bat, I’d say linenoise is a wonderful library. It achieves all of it’s goals, and I’d take it any day over readline.
However, linenoise does not satisfy many of Zig’s goals/best practices, like:
– Allowing custom memory allocators
– Using Zig style try/catch error handling
In addition, it’s API isn’t as clean as a pure Zig API. Besides all these things, I also just wanted to try my hand at writing a line editor.



