Content

This is a weblog

A script for text placeholders in VoodooPad

Wednesday 28 March 2007 - Filed under VoodooPad + mac + scripts + tips

Last year I wrote about my new page template for VoodooPad. I still use something like it – I like the uniform look and the built-in navigation starters I get in every page.

I got tired of all the clicking around it took to fill in the navigation every time I put in a new page, so I decided to write a script to mimic XCode’s “Select Next Placeholder” command. In XCode, if you use code completion, you might get something like this: [dict setObject:<# (id) anObject #> forKey:<# (id)key #>] Then pressing Control-/ cycles the selection through those placeholders so you can replace them with whatever you want quickly.

That’s really handy for code, and it’s great for VoodooPad templates too. I wrote the script as a Python script plugin for VoodooPad, and it maps Command-/ to select the next placeholder, wrapping the search at the end just like XCode does. Now my new page template in VoodooPad has a few placeholders in it, and I have a lot fewer pages with default template text sitting in there making me look lazy.

Download it here. (Note, it needs the VoodooPad Python Plugin Enabler )

2007-03-28  »  mike

Talkback x 4

  1. Tyler
    29 March 2007 @ 12:17 pm

    Awesome awesome awesome. Thanks.

  2. Administrator
    29 March 2007 @ 12:18 pm

    You’re welcome, Tyler – glad you like it!

  3. David
    30 March 2007 @ 2:48 pm

    Will it work with an intel-based machine? There was a note on the linked voodoopad page that says “ppc only”.

  4. Administrator
    30 March 2007 @ 8:14 pm

    David- honestly, I don’t know. It should be possible to have a universal build of the python plugin enabler, but I don’t know if Gus has done that yet.