[TxMt] a regexp test script (link)
Allan Odgaard
allan at macromates.com
Sun Apr 3 21:24:14 UTC 2005
On Apr 3, 2005, at 15:37, David Lee wrote:
> [...]
> echo "$TM_SELECTED_TEXT" | /path_to_script/rx_helper.rb
>
> with input='selected text' & output='show as tooltip'
The »echo "$TM_SELECTED_TEXT" |« part should be redundant, since stdin
is already the selected text (which is a preferred way to work on the
selection, since variables have an upper limit of 256K (okay, not
likely you'll experience it, but still...) and echo $something will
mangle the text slightly, like remove newlines.
More information about the textmate
mailing list