[TxMt] Feature request: Run commands on events

Allan Odgaard allan at macromates.com
Tue Apr 26 10:26:15 UTC 2005

On Apr 26, 2005, at 12:17, Robert M.Zigweid wrote:

> My current work around is really quite satisfactory, with the 
> exception that the command leaves the entire document highlighted.  
> THAT is annoying.

Okay, for now do:
  cmd-option-M (start macro recording)
  option-shift-R (filter through command)
  set in/out to document and command: perl -pe 's/[\t ]+$//g'
  arrow left (deselects text)
  cmd-option-M (stop macro recording)

Now save the macro (ctrl-cmd-M) and give it a name + key equivalent.

Probably though I should not let the 'replace document' output option 
leave the document selected.

More information about the textmate mailing list