So Lipgloss is like powerful. Wow.
I was using Lipgloss to style the status bar (more on that in a bit), and I took some time to actually read through the docs.
I’d used the picocolors before, which is a JS package that makes working with ANSI codes easier. I had assumed that Lipgloss was kind of like that: you just type lipgloss.Blue rather than \x1b[34m. But it can do all sorts of stuff like borders and padding and centering and compositing and enumeration and like a bajillion other things. I don’t understand how the Lipgloss codebase is only ~12,000 lines; based on how powerful it is, it feels like it should be much bigger.
Anyways, I added active line highlighting and a status bar. Right now, I’ve just made the status bar barf out info about the most recent keypress. For example:
- “inserted ‘a’ at 4:2”
- “split line 4 to line 5”
- “merged line 5 with 4”
- …et cetera
I might decide to make the status bar a bit less talkative later, but for now it’s useful for debugging.
Next, I’m going to work on adding line numbers. I also might decide to refactor the text rendering to use Lipgloss layers.
Comments 1
cool project twin!!! keep going!
Sign in to join the conversation.