pinel
- 4 Devlogs
- 6 Total hours
A code editor written completely from scratch in rust
A code editor written completely from scratch in rust
This devlog mainly talks about Discord RPC and my experience implementing it. I spent about 70% of the time writing out the code for it, but then handed off the testing and dealing with the env secrets for the discord application related stuff to claude. And then, I had to manually add 150+ assets to the developer platform so that whenever you open a file, it also displays an icon of the language you’re editing. Attached is an example.
Some other QoL changes include:
Context menu!
That is the topic for this devlog and building it was quite a pain. While the time logged was only a little over an hour I actually spent about 2 hours planning this out since it is quite a big diff. About 600 lines of code were written for this mainly due to the fact that it deal with a lot of key components. They include:
Overall not too bad but it was a pain. There are a couple bugs that I’m working towards fixing tomorrow and they revolve around the fading bar and the menu not activating in certain areas.
These bugs along with a few vulnerabilities will be dealt with in tomorrows devlog!
Vim mode! And more…
Pinel now features a minimal vim mode! I was able to import the core functionality from the package iced-code-editor (you will see me using this quite a lot) and it includes the following for vim:
Additionally, I’ve been working on a context menu!
Think of the field like box that pops up when you right click on a file in the VSCode file explorer… its that.
Here are some of the options that will be included in the context menu for now:
Hiya! This is the first devlog I’ve made on this updated project.
So, picking up where I left off since the last YSWS (macondo) there were quite a few new updates to my main dependency known as iced-code-editor. Some of them include a new command palette (which already exists in my editor), comment toggling, dots for spaces, safety nets, and more!
And so I was implement a few of these key features in the code editor one of them being the comment toggling feature. This allowed you to comment out a whole line by pressing Cntrl + / or Command + / if you’re on mac. Quite a useful feature that I use quite often.
Additionally, I worked on a cargo fmt file for linting the whole codebase every night for nightly builds.
The images below show the before and after of the comment toggling feature.