The journey to make this
Photo by Jan Kahánek on Unsplash

I love svelte

I have all these domains with hglbrg but I don’t really need a website so usually I just throw up a sveltekit project, make a front page and that is it. Then I stumbled on a Japanese blog which inspired me to create this.

This is far from the first or only blog I have written, created or built. What tends to happen is I write a post or five, then I run out of things to say and the writing itch is scratched for a couple of months. When it returns, I have moved on from the project completely.

Configuring LazyGit started the whole thing

I use NeoVim, a modern take on the vim text editor that is more than 30 years old. I use it because it is fast, because it is powerful, because it is extensible and because it is free. I use it because it is the best text editor I’ve ever used. I’ve been using it for more than 5 years now and I’ve never looked back.

Don’t get me wrong I am not against other IDE’s or text editors. It is sad that I have to make that disclaimer and be so clear about it because of all these wannabe coders who think they are supposed to think that vscode sucks for some reason.

I do use Vscode too you know. But I digress.

I like conventional commits and gitmoji

In my actual job I am currently maintaining a very old project that has been updated over many years by many hands. Yes that does create immense technical debt and one way to deal with technical debt is to first accept it, then slowly chip away at it while you are doing other development.

Another way, linked to the first one is to keep order and structure in both your code, your documentation, your notes and your work in general.

This is where systems like Conventional Commits comes in. It is just a set of rules you agree to follow deliberately without any punishment if you don’t. As you can tell from the name it is about commits. I will not bore you with the details here. Visit the website if you are interested.

I also like gitmoji

Gitmoji is another system for git commits and communicating on git and about git (if you want to) using emojis. For instance 🚀 is used to show that this is a release for instance.

Again it is an opt-in system you decide to follow as much as you want.

Our team uses gitmoji to communicate on Slack, so you can scan a channel and find bug reports 🐛, info that someone updated a package 📦, that someone did something with translations 🌐 - you get the gist.

Combining the two

What I wanted though, was for LazyGit to have a guide similar to the Conventional Commits extension in Vscode where you can just select the type, enter the scope, write a message and then it is done. So that you maintain the syntax. In addition I wanted to add a gitmoji in the end of the message so one could at-a-glance see what was happening in the gitlog.

Arrogantly I thought I was the first and the only one who wanted this but then I stumbled across this japanese blog post about the exact same thing. And ended up basically copying their solution but translating it to English.

And that japanese blog inspired this one

I really liked the idea of just writing ever so often when you have a solution to share. Like I just googled to see if someone had thought about the same idea, and someone had, and even solved it, and actually cleaner than I would have done it.

So that inspired me to create this. A place where I could drop stuff I have solved so maybe some nerd in the future stumbles upon some edge case only they and I ever thought of.

And if you are one such nerd that found this place for whatever reason and some crazy solution I had written about helped you. Maybe you should do the same thing?