[TxMt] scope-specific word completion collection
Allan Odgaard
throw-away-1 at macromates.com
Sat Dec 17 12:41:23 UTC 2005
On 17/12/2005, at 13:40, Allan Odgaard wrote:
> On 17/12/2005, at 11:14, Allan Odgaard wrote:
>> [...] completionCommand = 'perl -pe "s/^\t{4}($TM_CURRENT_WORD.*)\
>> $|.*\n?/\$1/" <"$TM_FILEPATH"';
> Btw: you probably want to add: “|sort|uniq” after the command.
Oh, and change .* to .+ to exclude the current word, i.e.:
completionCommand = 'perl -pe "s/^\t{4}($TM_CURRENT_WORD.+)\$|.*
\n?/\$1/" <"$TM_FILEPATH"|sort|uniq';
More information about the textmate
mailing list