A Quick VoodooPad Script Plugin - Go To Today

VoodooPad Scratchpad Screenshot This script may not be of use to many people, but I’m finding it so handy today that I figured I’d post it in the hopes that someone who needs it finds it. It’s really only useful to people who use VoodooPad to keep a journal or log with a page for each date, and all it does is jump to the current day’s page. Simple, but useful.

I’m using Ian Beck’s VoodooPad Scratchpad scripts, and have been for over a year. I won’t go into detail on the inner workings (I’m hoping to post a little more about them on TUAW soon), but the end result is a very well-connected log of what I’ve done, what I’ve found and what I’ve learned each day. Navigating them isn’t difficult, but once you’ve run it for a year or more, you end up with a lot of very similarly named pages (2010-09-xx, etc.). I’m sure this is the case for anyone who’s logging or journaling in VoodooPad, and if you’ve ever scrolled for more than a few seconds just to find the page for today, here’s your (über-simple) answer.

VPLanguage = lua
VPScriptMenuTitle = Go to Today
VPShortcutKey = g
VPShortcutMask = command control

document = windowController:document()
pageName = os.date("%Y-%m-%d", os.time())

You’ll want to edit the line with os.date() in it to match the format of your date-named pages. Then just save it as gototoday.lua in your Script Plugins folder (~/Library/Application Support/VoodooPad/Script Plugins). Restart VoodoPad and the shortcut Control-Command-G will jump to the current day. It’s not smart, though, and if you don’t have a page for the current day, it’s going to make one. That could be good or bad, depending on your system.

I also wrote a script page within my scratchpad (called Today) that jumps to the current day instead of itself when you open it. It seems like one of those things that I just did to see if I could, and not worth troubling the internets with. If you’re interested in it, ping me.

Brett Terpstra

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff on Twitter, GitHub, and Mastodon. Keep up with this blog by subscribing in your favorite news reader.

This content is supported by readers like you.

Join the conversation