Merlin’s weekly podcast with Dan Benjamin. We talk about creativity, independence, and making things you love.
Merlin’s weekly podcast with Dan Benjamin. We talk about creativity, independence, and making things you love.
”What’s 43 Folders?”
43Folders.com is Merlin Mann’s website about finding the time and attention to do your best creative work.
TextMate projects: faking metadata
Merlin Mann | Oct 18 2004
Wrote this long-winded post to the TextMate list, so I thought I’d repurpose it here. Just quick tips on adding metadata to your text files and—because I’m a dull and repetitive scold—using controlled vocabularies to keep your stuff searchable.
And, per that last bit, I do encourage fellow TextMate nerds to share their productivity tips in comments here. 12 Comments
POSTED IN:
Like Merlin, I write a...Submitted by bsag (not verified) on October 19, 2004 - 9:10am.
Like Merlin, I write a lot of documents using Markdown (particularly as the built in piping of web previews through Markdown.pl makes it all so convenient). In time - probably when there's a GUI for editing bundles - I'm planning to have a go at syntax highlighting, commands and snippets for Markdown files. Until then, I've been playing about with some commands to help markup Markdown (heh). Someone on the TextMate list mentioned that 'heredoc' syntax is useful to run a set of commands with Ruby. Since I'm learning Ruby anyway, that suits me, and it gives a standard template for commands. Here are a few examples: ruby <<END
chars = This underlines your selection with H1 markup (you need to set Standard input to Selected text and Standard Output to Replace selected text). ruby <<END print ""+"$TM_SELECTED_TEXT"+"" END This wraps the selection in bold tags and is easy to modify for italics, H3 etc. It's easiest to trigger these with a keystroke, but if you've got a lot of commands, it gets hard to find an unused combination. Then I realised that I could take advantage of the feature in TextMate that pops up a menu under the cursor when you have a keystroke assigned to more than one command. I name all my Markdown commands something like 'bold.markdown' or 'h1.markdown' and assign Ctrl-Cmd-M to all of them. You select some text, hit Ctrl-Cmd-M and the menu with all the commands pops up. You can type the first few letters of the entry you want (e.g. 'bo') to select it, then hit Enter and - bam! - your selection is wrapped in markup. Or Markdown. » POSTED IN:
|
|
EXPLORE 43Folders | THE GOOD STUFF |