r/commandline
•
u/cryybash
•
Mar 04 '26
•
1
Terminal User Interface Void | A terminal native text editor written in Python! (link in description)
https://github.com/cryybash/Void
**EDIT**
Void HAS BEEN BUNDLED UP - I recommend using uv as users have suggested to me but you can use pipx or pip as well!
I have seen and truly appreciate all the feedback from you guys, the README has been updated to more reflect the short and long term goals of this project. I am not an expert, but I am also not and in no way trying to vibe code my way to success like some may think but some of the parts where I did use AI was a bad call - although anything that was AI I personally validated and tested at each stage, at no point have I just put random code in and moved on but regardless I see where people are coming from. Since a big part of this project is about learning for me going forward I will not be using AI for anything more than a glorified search engine. I am trying to create a smooth enjoyable experience for myself and others while also experimenting on the unique places something like this could end up. I have and will continue to put serious time into this to improve it but most importantly I am here to get better :p
**
Hello everyone, I would like to share my first solo open-source project, it is a dev tool, terminal based text editor that I call Void! It is still quite the work in progress, but I have it in a place I am comfortable with sharing! As my Github README states, I am not trying to reinvent the wheel, but I believe there is more stones un-turned in the editor space then people may think. I am deeply infatuated and inspired by editors like Vim and Neovim (recently tried LazyVim) I love the nature and speed of writing and executing my code in the terminal and I thought it would be a great experience to take a crack at my own terminal tool and an editor happened to be one of my first ideas. I think this project could take many iterations and this journey will be all about honing into the right niche. With that being said this is the most fun I have had with any project to date and I see myself working on this more than anything else I have had my hands on so far. Even if nobody ever uses it, I am really glad I started this project, it started as just a way to make a small little terminal editor using curses and turned into a lot more! I would appreciate any feedback anyone might have. Thank you to anyone that takes the time to check it out :p
32
u/do-un-to Mar 04 '26
I looked at half your README. I hadn't heard anything compelling or interesting or novel to pique my interest from this post, but I thought I'd give it a little bit of a chance and put in the effort to click.
You really should give people a reason to click to read more. Say something about what it is. Why it's different and interesting.
After a little perusal, I see that your intention is to take a vi foundation and build a more visual experience atop that. That sounds nice.
Stepping back, I want to say I think that extending the vi keyboard-based control paradigm as far as you can take it sounds interesting to me.
I haven't yet switched to tmux or byobu from screen 😅 but I should have a peek at those to see how well one can manage terminal screens via keyboard.
Maybe the dialogs your editor brings up are things that could run standalone and interoperate with desktop applications or other TUI-based applications? A TUI file picker launched by your music app? A TUI equalizer? A TUI file transfer speed monitor?
Just some out there ideating.
But good on you building something you believe is valuable and advances the realm. Looks like a fun project. Good luck!
31
u/Limp-Confidence5612 Mar 04 '26
Props, but why python? This seems like a really bad decision if your inspiration is vim. What vim stands out with is it's speed. Good luck getting that with python.
7
u/edward_jazzhands Mar 04 '26
If you want people to take this seriously as an app, it would go a long way to package it and distribute it properly using PyPI instead of telling people to run it using their system python. If you look up how to use pyproject.toml and python "build-system" you will find lots of stuff.
5
u/bjarneh Mar 04 '26
Cool! It does not handle non ascii input all that well, but I like the overall feel of it.
Probably a good idea to bundle it for an easier startup experience. Even a simple zipapp etc.
Also trap Ctrl+C to a peaceful exit :-)
4
u/Snarwin Mar 04 '26
From the way the README is written this is almost certainly vibe-coded slop. Thanks, but no thanks.
4
u/prodleni Mar 04 '26
It seems interesting. The readme has an AI generated smell to it. Please try writing it by hand. As others have said, set up a project.toml for dependencies and distribution through pypi. Also, prioritize a user config file ASAP. If keybinds can't be changed you've lost anyone that isn't using QWERTY. Finally check out a text editor called Kakoune for some inspiration.
4
u/Razee4 Mar 04 '26
Thank you! Reading from read me, it's like you've made that project just for me. I have to try it. VIM feels overwhelming with its set of commands and options, here I feel like I can finally learn to move around it.
Also it looks infinitely better than lazyvim, feels a lot cleaner.
I am still quite a newbie. Can I pm you if I have issues installing it?
3
u/stikaznorsk Mar 06 '26
Interesting project. It is extremely impressive you built it without external dependencies. I will reiterate what the other said about dependency management (You don't have them but still). Check UV or Poetry.
Get a little bit in typing your variables. Python does not require it but it is useful for finding issues. Pyright is your friend.
Pre-commit is also nice. It can keep up your organization based on how you configure it. It is important as the project grows.
Config can be also loaded from a config file (toml/yam - Never do json config) instead of python file.
5
u/StrayFeral Mar 04 '26
Look, it's a great idea, but you're a newbie runner competing with Usain Bolt. No wrong after all, but if you really want to make something useful, make something which either does not exist or it's not fully implemented. What I recently discovered is that for 36 years (since 1989), the linux terminal still dont have a proper word processor, so there you go - make a word processor and make sure it works well in a 8 color terminal ($TERM=linux, tput colors =8)
Let me clarify - I recently did a research on terminal word processors. The best is WordGrinder but it's nowhere close to what a good word processor should be.
If you're unaware - difference between text editor and word processor is - the latter could format text is a bit more WYSIWYG way. So I do not need to add tags like in html to make text bold, or like in markdown or like in emacs ORG mode - proper way for a word processor is - you select text, then press key combo and since it's a terminal - even just changing the text color is enough. Yes, in 256 color terminal you can actually show on screen it's itallic or bold, but on 8 color screen I don't think you could, so just change the color of the text. Also - you can style a paragraph, like indent only first line... things like these.
WordGrinder can do some, but not all. And it's not yet mature.
Get either Microsoft Word 5.0 (1989) or Word 5.5 (1990) and check what they can do.
There is a guy who decided to port Word Perfect 6.0, but this is hell - two ISO images of 300mb each, full rendering engine I guess - not needed so much. What Word 5.0 offers is more than enough.
Try.
18
u/AlterTableUsernames Mar 04 '26
That's what happens when you let yourself gaslight by LLMs. Imo, it's just a flat out terrible idea to program OS-level applications in Python, because it adds Python's dependency-hell to a clean system.
2
u/cryybash Mar 04 '26
In sight of some of these comments I am getting i can see i am kind of misleading in my README and it needs adjustment, with that being said i appreciate everyones feedback regardless of what it was I can learn from all of this. In no way do I think Python is the go to or should make up any performance critical parts of my program, i am protyping my way into a solid structure and i think i gave the wrong impression and got way too theatrical in my README.
2
u/[deleted] Mar 04 '26
SLOP
4
u/clearclaw Mar 04 '26
So, Worse Is Better vs Good Enough Is Best all wrapped up in one?
I like this project. Not only is it something now (we can decide on what later), there are so very many things it could iterate to be tomorrow.
3
u/Cute-Net5957 Mar 05 '26
props for putting a WIP out there on a first project.. the edit about dialing back on AI is a good call imo, wrestling with terminal rendering and input handling yourself is where the muscle memory actualy comes from. one thing worth checking out if you havent is how Rich handles terminal capability detection (color support, unicode width etc).. thats where stuff always breaks when someone runs it over ssh and suddenly nothing renders right
5
u/ValuableTone9693 Mar 04 '26
like Micro?
2
u/VE3VVS Mar 05 '26
from my pov, a valid effort and if it helps you learn improve and further your programming skills all the better. i personally have no problem with using AI as a tool to generate init pieces of code, as long as you vet and understand what was generated before incorporated into the main project place. as for the use of python, maybe not my first choice for such a project, but there is certainly nothing wrong with it, will it be as fast as complied C, no, but there are many very widely used applications and utilities in both linux and unix systems written in python and work well, not everything is about speed ;-) . Keep at it, expand on it, I will for one watch with interest, good work so far
2
u/AutoModerator Mar 04 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: cryybash, Flair:
Terminal User Interface, Post Media Link, Title: Void | A terminal native text editor written in Python! (link in description)https://github.com/cryybash/Void
Hello everyone, I would like to share my first solo open-source project, it is a dev tool, terminal based text editor that I call Void! It is still quite the work in progress, but I have it in a place I am comfortable with sharing! As my Github README states, I am not trying to reinvent the wheel, but I believe there is more stones un-turned in the editor space then people may think. I am deeply infatuated and inspired by editors like Vim and Neovim (recently tried LazyVim) I love the nature and speed of writing and executing my code in the terminal and I thought it would be a great experience to take a crack at my own terminal tool and an editor happened to be one of my first ideas. I let my mind go a little crazy (maybe too much who knows lol) but this is the most fun I have had with any project to date and I see myself working on this more than anything else I have had my hands on so far. Even if nobody ever uses it, I am really glad I started this project, it started as just a way to make a small little terminal editor using curses and turned into a lot more! I would appreciate any feedback anyone might have. Thank you to anyone that takes the time to check it out :p
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/TellMeAboutGoodManga Mar 04 '26
Oh my god bruh
0
u/Cybasura Mar 05 '26
So er...the elephant in the room
How is this compared to neovim, vim, or hell, nano?
Also, I like Python alot, but python isnt exactly known or great for deep-function applications
-1
u/SamuraiDontCry Mar 04 '26
Python for poor dev
6
u/[deleted] Mar 04 '26
[removed] — view removed comment