Live data from Hacker News

A lightweight code editor with Vim mode, Git integration, and more

athas.dev

11–15 of 15 posts

Re: A lightweight code editor with Vim mode, Git integration, and more

#11

When I see posts like this, I cant help but ask. How do you even build a code editor? What kinda of system design or OOP does it require. I couldnt find articles on HN searching for it so if anyone is reading, I super appreciate if you can share some links where talk about the methodology and thought process that goes into how to make a code editor from scratch

One great way to start learning is to code your own! Here's a step-by-step guide to writing a TUI text editor in ~1000 lines of code (and it's super easy to embellish as you go): https://viewsourcecode.org/snaptoken/kilo/

Re: A lightweight code editor with Vim mode, Git integration, and more

#12

Why are there so many people making code editors? It seems like we've hit a veritable Cambrian explosion of editors and I don't understand what market signals are being picked up where people find the editors insufficient.

Do you consider forking VSCode making a code editor? I wouldn't. Not that this is one of those, but most "new" editors seem to be.

Re: A lightweight code editor with Vim mode, Git integration, and more

#13

Earlier quoted context omitted.

Software is changing, everything is up for grabs. Lots of people are making Notion clones, slack clones, browsers, IDEs.

> slack clones As an anecdote - I really want to see consolidation here. All my chat services under one parent application. WhatsApp, Slack, Discord, Messenger. I really don't care about the vendor for chat services, just exhausted of installing multiple clients and many of the clients being pretty garbage. I would also like to say the same for many services. Online banking is top of mind for me right now as I have s…

> All my chat services under one parent application. WhatsApp, Slack, Discord, Messenger.

There was a time where one application for multiple chat services was a thing, e.g. Pidgin, Trillian or Miranda. With thw death of ICQ, AIM or MSN this is pretty much history.

Re: A lightweight code editor with Vim mode, Git integration, and more

#14

When I see posts like this, I cant help but ask. How do you even build a code editor? What kinda of system design or OOP does it require. I couldnt find articles on HN searching for it so if anyone is reading, I super appreciate if you can share some links where talk about the methodology and thought process that goes into how to make a code editor from scratch

For internals a lot of text editors use ropes as the core data structure, which makes text buffers fast.

https://en.wikipedia.org/wiki/Rope_(data_structure) https://github.com/cessen/ropey

Re: A lightweight code editor with Vim mode, Git integration, and more

#15

Earlier quoted context omitted.

Software is changing, everything is up for grabs. Lots of people are making Notion clones, slack clones, browsers, IDEs.

> slack clones As an anecdote - I really want to see consolidation here. All my chat services under one parent application. WhatsApp, Slack, Discord, Messenger. I really don't care about the vendor for chat services, just exhausted of installing multiple clients and many of the clients being pretty garbage. I would also like to say the same for many services. Online banking is top of mind for me right now as I have s…

A funny workaround I employed is running Beeper. It's a Matrix client that also provides chat mirroring for other platforms. The sync is slightly jank but it works for what I want to achieve

The mirroring stuff is FOSS and I think so is the client, the financial model being that you're limited to a fairly low amount of services proxies at once without a paid plan

Post reply on HN