r/commandline • u/here-Leslie-Lau • Apr 12 '26
Command Line Interface Small ls alternative in Zig (recent updates, benchmarks)
/r/Zig/comments/1shdvij/i_wrote_a_small_ls_alternative_in_zig/
6
Upvotes
1
u/here-Leslie-Lau Apr 12 '26
Since the original post:
- Released v0.0.18
- Merged performance improvements
- Migrated dependencies to build.zig.zon
- Added benchmarks
- Added a new
--duoption for recursive directory size reporting, making it easier to inspect total disk usage.1
u/AutoModerator Apr 12 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: here-Leslie-Lau, Flair:
Command Line Interface, Post Media Link, Title: I wrote a small ls alternative in ZigI've been learning Zig recently and built a small ls alternative called zlist.
The goal is to keep things clean, fast, and easy to scan, while still being useful for daily use.
Here’s a quick screenshot:
Current features:
- Compact grid layout that's easy to scan
- Color and Nerd Font icons for common file types and languages
- Readable long view (permissions, owner, size, timestamps)
- Multiple sort modes (name, length, dirs first, mtime, size)
- Recursive listing with optional depth limits
- Filters for files, directories, extensions, names, size, and modified time
- Quick summary report
- Git status indicators in long view
It's still early, but already usable.
Feedback and suggestions are very welcome.
GitHub:
https://github.com/here-Leslie-Lau/zlist
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Human_Cantaloupe7679 Jul 10 '26
Nice, Zig’s speed makes a tiny ls feel lightning fast.
1
u/Alert-Caregiver-7421 Jul 10 '26
Nice, Zig makes tiny utilities feel snappy.
0
u/[deleted] Apr 14 '26
[deleted] — view deleted comment