Zenith: a console-based text editor in Zig

zedi : z(ig) edi(tor)

Your project is starting to take shape, I’m waiting for the next step, for example a small source file explorer to select it,

Bravo

1 Like

If you have nnn installed, you can actually use it as a file manager. You can set an external file manager to use with the use-file-opener key, documented here.

Zenith currently spawns a pseudo-terminal to pipe input into the external program. It shims configuration of the termios options by copying the termios from the ptty into the current stdout. Although it works it’s basically a hacky solution in order to get external raw mode programs working. Running nnn works, but output breaks if nnn spawns programs like less.

What I should’ve done was to let the spawned process control the terminal’s termios directly, but I’m not sure how to do that.

tldr You can use nnn as an external file manager. It works on my machine.

Hello, check out my source: mdlFile.zig on GitHub. It will help you create a directory explorer with the choice of source.

Right now I’m still sick…so I took a break from my development.

I look at other people’s projects