Today, one of our new Sainte-Force apprentices tried out Porkcuts, and he seemed to like it. What we wanted, however, was a little different context sensitivity: Porkcuts works with the filesystem hierarchy, whereas it could be based on tags, or recognizing certain patterns in the current file path (with regular expressions). Actually, if we run at least Lion, we can have both.
Just paste this to a Porkcuts file, for instance in your home directory:
All you have to do to add new regex-based porkcuts is to modify the dictionary referenced by tagBasedPorkcuts. The key is a regular expression in a string, and the value is a code block that states what to do if the regex has been recognized. Thanks and praises to Florian for that very classy idea !
Looking forward to hearing from you,