Hosting dotfiles In The Grimoire
I'm moving my dotfiles into the grimoire. I've only done a few, but I'm loving it. It eliminates that little bit of friction to get to the file. It also let's me publish them on the site instead of having them sit in a repo. And, when they're on the site I can write the notes around them for some explanation.
The process works via -- export
and -- /code
tags. I put a file path behind -- export
that determines the destination. When I hit a hotkey in Neovim it cranks the contents out.
Here's a sample of what it looks like:
-- code
-- bash
-- export: /Users/alan/Desktop/example.bash
echo "Hello, world"
Super handy
Notes
-
The hotkey I'm using to export the code snippets is LayerShift2+
x which I think of as (eXport)
-- end of line --