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';