[TxMt] using the howto's from the wiki

Eben eben at bakedbean.net
Thu Dec 28 16:49:09 UTC 2006


Hello,

I have just started using Textmate as my primary editor.  I would very 
much like to make use of some of the howto's offered in the wiki, but I 
am a bit confused on how to implement them.  I am assuming they are 
bundles, and are implemented via the bundle editor.  At the moment I am 
specifically interested in this one:

- Before: Do Nothing
- Command: grep -n 
'^[[:space:]]*\(public\|private\|protected\)\?\([[:space:]]\+static\|
           [[:space:]]\+abstract\)\?[[:space:]]\+function'
- Std In: Entire Document
- Std out: Show in separate win
- Pattern: ^(\d+):\s(public|private|protected)?(\s+static|\s+abstract)?
           \s+function\s+([_A-Za-z][_A-Za-z0-9]*)\s*[(](.*)[)]
- Format: $2$3 $4\( $5 \)
- Line: 1

which supposedly creates a clickable list of functions for php 4 and 5.  
Looking at the bundle editor, would I set this up as a php command, or 
something else entirely?  And what would be the actual code placed into 
the Command(s) box?

Any advice is appreciated.



More information about the textmate mailing list