[TxMt] Re: callback.application.did-deactivate

Alexey Blinov nilcolor at gmail.com
Mon Dec 26 07:44:27 UTC 2011


I'd like to create something (a-la plugin maybe) that will call `Remove Trailing Spaces...` on `callback.document.did-save`...
Can somebody points me a direction? Any docs/help about that kind of stuff?

---
Alexey

On Dec 26, 2011, at 00:40, Allan Odgaard wrote:

> On 22 Dec 2011, at 15:54, Rick DeNatale wrote:
> 
>> Is there an official list of semantic classes/callbacks in TM2? […]
> 
> * `callback.document.did-save`
> * `callback.document.binary-import`
> * `callback.document.binary-export`
> * `callback.document.import`
> * `callback.document.export`
> * `callback.file-browser.action-menu`
> * `callback.mouse-click`
> 
> For the import/export callbacks input/output must be document/replace document. Binary means before/after TextMate converts to/from UTF-8/LF.
> 
> For the mouse-click callback you can limit this to a modifier by using any of the following in the scope:
> 
> * `dyn.modifier.shift`
> * `dyn.modifier.control`
> * `dyn.modifier.option`
> * `dyn.modifier.command`
> 
> The above should be considered subject to change.
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate



More information about the textmate mailing list