I have been using Emacs for about 4+ years now, and I still find new things.
One of the thing I discovered this week is ability to create mindmaps without leaving the comfort of Emacs 😄 This is made possible via PlantUML.
Doom emacs makes it very easy to set it up.
Enable plantuml in the init.el of your doom emacs config. M-x doom/reload (This will install the appropriate packages) M-x plantuml-download-jar (Make sure you have working java installation) doom/open-scratch-buffer org-mode (Not sure if this is needed, but better be explicit) Now create following in your scratch buffer that is already in plantuml mode.
Continue Reading »
I use SPC / a lot to find stuff inside a project. Since starting on Ruby project, a lot of my search results, specifically the first ones are inside the spec file (which is test case in Ruby)
I may want those instances as well, but more often than not, I prefer the search results in the source code before test cases.
The project is huge, and I have to scroll a lot before I see non-spec code, which becomes tiresome.
Continue Reading »
This may seem like strange title for the post, compared to my other posts, and it is.
In case you don’t know any of these gentlemen, both of them are writers.
Rolf Potts is known for Vagabonding. Made (more) popular by Tim Ferriss.
Richard Bach may be known for “Jonathan Livingston Seagull” to most people. But I’ve read a lot of his books.
That does not look like they should be the topic of the same entry.
Continue Reading »
When I am working on a project, it is highly likely that I would open other files from that project. In order to do that, in Helix I would do SPC F. This opens up file picker for that workspace.
I can then either navigate using arrow keys, or most likely start typing the name of the file and the file will be highlighted. As a side benefit, the file is shown on the right pane as a preview.
Continue Reading »
Some days ago, I came across a requirement where I needed to run some rails code at the end of deployment. We use the Capistrano tool for the deployment, and it has great support for hooks like after 'deploy:published', 'some_task'
Most of the examples show some system commands, since Capistrano is a deployment tool, and isn’t running rails.
But I didn’t know that, being new to rails ecosystem.
So at first, at just called a background job that needed to talk to third party system and get some data, once the rails server is up.
Continue Reading »
Towards the beginning of the year, I had written about Fuzzy Search in fish For the better part of the year. I only used Ctrl-R functionality, that too occasionally.
Then today, I came across the same again, and after going through the README, I noticed at least one more useful keybinding.
git status normally would just list the modified files etc. To see what has changed, one needs to git diff <filename>
Continue Reading »
Helix is a great editor. I’m trying it more and more these days (Like this post is edited in helix)
While shift from action->object to object->action in itself is big change (muscle memory), there are indeed other differences as well.
Luckily, it is easy to add keybindings to helix. Turns out someone took this too far, and created a lot of keybindings to make helix more like Vim
Refer to this for the entire config.
Continue Reading »
Noticed that new version 22.08.1 of helix is now available. See this Upgrade via your preferred package manager.
After the upgrade, used hx after a long time.
I also signed up for the matrix channel. Turns out that is where all the action is.
I’m member of (almost-dead-but-not-quite) Telegram group for a while. But matrix channel seems active.
I got immediate reply to my query. Nice!
My query was : How do I go to the last line of the buffer ?
Continue Reading »
While I was searching for useful snippets for Markdown (I was specifically looking for snippet to insert current time.)
I came across this article.
To be honest, it feels like cheating. Like writing HTML manually. (With snippets, work could reduce)
ⓘ Info: I don't see myself using it often. Did you see what I did there 😉
If you are reading my posts, you would have realized that I had switched to nvim and went down the rabbit hole with different configurations etc. I think I got it to a stable state, and then I stopped tinkering.
But when I recently started coding again in Ruby, I realized that nvim is good as an editor, but at least I was not able to configure it as IDE. It has all the right tools (lsp, syntax highlighting, packages) yet something didn’t work 😞
Continue Reading »