Obsidian #2
- 2023-01-30
- 12:40
This is the first post I'm writing from Obsidian. I love jrnl, but it is so not suitable for longer posts. Or writing from Mobile. Really, this Obsidian compatibility layer is for when I'm writing posts on the go. Or much longer posts. You get the idea.
This whole thing is powered by the Templater plugin. I have a jrnl
folder that triggers a template when a file is first created. It sets the date and time stamp, then asks the user for the post title. From there, I am free to write.
To sync my changes, I have another template with a single user script command that runs the following system command:
cat '/home/holly/Obsidian/brain-droppings/Journal/2023-01-30.md' >> /home/holly/.config/jrnl/journal.txt
The only downside to this is I'd have to edit the file manually in Sublime if I wanted to make changes to the post.
OR
I could use the absolute power of Python, and loop through all of the posts in the jrnl
folder in the Obsidian vault, and generate an entirely new journal.txt
that LiveJrnl can use... Which would effectively scratch the itch that I created in this post. Of course, that would mean I would no longer need jrnl
for an editor and would only be using their file format... I'd also have to handle encrypt--I'm sorry, where were we? 😅
Now let's see if my journal takes a huge dump when I save this... 🤞