In this update I have fairly dramatically changed the way you have to call the code snippets.
The previous releases suffered from a problem whereby the
xf
component of the shortcut trigger was treated as a separate word, so
xf-entity
would not search automatically for
xf-entity
but rather would search for shortcuts beginning with
entity
as soon as the cursor passed the dash character.
Having understood that now, the shortcuts are revised to remove punctuation in most instances, such that the PHP shortcut
xf-entity
is now triggered with
xfEntity
instead and the Javascript shortcut
XF:EventHandler
is now triggered with
xfEventHandler
.
HTML shortcuts, with
<xf:tagname
format are unaffected.
This update also brings with it shortcuts for (amongst others)
- Finder calls
xfFinder
- Repository calls
xfRepository
- Entity creation
xfEmCreate
- AssertRecordExists
xfAssertRecordExists