So I came across Shell Commands plugin the other day which has risen up the ranks to become one my favorite tools/plugin.
Scroll with me, Let’s explore my use cases.
Publish#
I created commands to publish new posts (written in Obsidian) to my websites AfterHours and Inkspire from Obsidian. I previously used VScode to do this—not anymore!
Publish: Inkspire
Notes in Inkspire
are copied to ~/quartz/content
. Deleted items (folders, notes, images, etc.) in Inkspire
are also deleted in ~/quartz/content
.
One command and Cloudflare does the rest.
Publish: After Hours
I really took it a step further with this one. But that highlights the potential of this wonderful plugin.
Typos? Not anymore!!!
Local Servers? Hello?#
Local Server: Inkspire
Simple & Direct.
Local Server: After Hours
I simplified publishing to After Hours in just 2 commands. (1) New post (2) Publish post #Best_Investment_Ever
Utilities & Exxtras#
Because why not?
Open Terminal Here
I have long understood why power users prefer the command line: The versatility and potential is unmatched. Period.
Open Terminal as Admin
My PowerShell profile is goated as is. This is me playing around with what’s possible.
Kill Running Servers
I was having fun at this point. And it was fun.
Extras: Publish with Share Note
Hugo has issues with processing heavy GIFs. Instead, I use Share Note to publish those notes/posts that benefit from that GIPHY touch.
Delete Posts too!?!?!
A little proud of this one. Combine this with hugo local server run command and you have VScode’s live server extension feeling like a fraud.
Updated R* compile commands
I created a RStudio
project folder to house my Obsidian R notes/files (I’ll probably stick with RStudio because this is me playing around in Obsidian—a bad habit, if you will).
Pandoc
Check out this post on writing manuscripts with Pandoc.
Conclusion#
That’s a lot of custom commands (and I’m positive I’ll be creating more). See you in the next one!