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:
Heh. I’m pretty new to...Submitted by Merlin on October 19, 2004 - 7:41am.
Heh. I’m pretty new to this too, Jacob, but I’ll take a stab. Unix gives users a powerful tool called “pattern matching” using an amazing thing called “regular expressions.” In a nutshell, think of how you’d do a “Find” on your computer or on Google; regular expressions take that functionality to another level by providing incredibly sophisticated ways to find and replace text in a variety of contexts. So, in addition to simple strings, you can also use “metacharacters” that provide a logical framework for locating extremely specific instances of text. Like “find all instances of ‘John’ and change them to ‘Jon’ but only when they exist on a line that contains ‘Daily Show’” would be an (English language) example. A popular way to conduct these searches is with a program called grep although I’ve also been using a stream editor called sed. Also, as I understand it, regular expressions are an important part of the functional scripting that’s done in Perl. There are (literally) whole books about regular expressions, but the main thing to know is that if you have text in some format and need to “do things” to it, a knowledge of regular expressions is likely to let you do it. I have a lot to learn, personally; So far I’m basically typing phoenetically from other people’s recipes in order to accomplish anything. The curve is pretty steep, but so is the payoff. Unix wizards: was I close? Anything to add? » POSTED IN:
|
|
EXPLORE 43Folders | THE GOOD STUFF |