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

Allan Odgaard mailinglist at textmate.org
Sun Dec 25 20:40:45 UTC 2011


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.



More information about the textmate mailing list