[TxMt] Re: Bundles & Commands Questions

Jacob Carlborg doob at me.com
Tue Jan 17 17:46:28 UTC 2017


> On 17 jan 2017, at 05:33, じょいすじょん <dangerwillrobinsondanger at gmail.com> wrote:
> 
> I have found that I had to finally learn to create Commands in a TM Bundle to move beyond what snippets alone can do (even though they have such a brilliantly simple syntax...)
> Is there any canonical listing of values to use Semantic Class hooks?


This is a list of semantic class callbacks that I’ve managed to collect from different places:

* callback.application.did-activate
* callback.application.did-deactivate
* callback.document.binary-export
* callback.document.binary-import
* callback.document.did-reload
* callback.document.did-save
* callback.document.export
* callback.document.import
* callback.document.will-reload
* callback.document.will-save
* callback.double-click
* callback.file-browser.action-menu
* callback.mouse-click (old)
* callback.single-click
* callback.triple-click

For mouse click callbacks, the following modifiers can be used:

* dyn.modifier.shift
* dyn.modifier.control
* dyn.modifier.option
* dyn.modifier.command

The modifiers are set in “Scope Selector”.

-- 
/Jacob Carlborg


More information about the textmate mailing list