I¹d like to suggest the following modifications to your A4D Sublime
package:
Snippets/equal-write.sublime-snippet:
<snippet>
<description>= ..</description>
<content><![CDATA[<%= $SELECTION$0 %>]]></content>
<scope>text.html.strict.active4d - source.active4d</scope>
</snippet>
Allows you to wrap selected text in <%= .... %>
New snippet wrap-a4d-tag.sublime-snippet:
<snippet>
<description>= ..</description>
<content><![CDATA[<% $SELECTION$0 %>]]></content>
<scope>text.html.strict.active4d - source.active4d</scope>
</snippet>
Allows you to wrap selected text in <% .... %>
Modified Default.sublime-keymap with cmd+alt+= to trigger
wrap-a4d-tag.sublime-snippet:
[
{ "keys": ["super+shift+="], "command": "insert_snippet", "args": {
"name": "Packages/Active4D/Snippets/equal-write.sublime-snippet" },
"context":
[
{ "key": "selector", "operator": "equal", "operand":
"text.html.strict.active4d - source.active4d", "match_all": true }
]
},
{ "keys": ["super+alt+="], "command": "insert_snippet", "args": {
"name": "Packages/Active4D/Snippets/wrap-a4d-tag.sublime-snippet" },
"context":
[
{ "key": "selector", "operator": "equal", "operand":
"text.html.strict.active4d - source.active4d", "match_all": true }
]
},
{ "keys": ["super+alt+b"], "command": "build_query", "context":
[
{ "key": "selector", "operator": "equal", "operand":
"source.active4d", "match_all": true }
]
},
{ "keys": ["super+k", "super+i"], "command": "open_include", "context":
[
{ "key": "selector", "operator": "equal", "operand":
"source.active4d", "match_all": true }
]
}
]
Regards
Peter
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/