Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

embed snippet and key bindings #2

Merged
merged 1 commit into from

2 participants

@videoMonkey

I added a snippet to add an embed and keybindings to trigger the snippet. They use the <? ?> pattern that you have. I still would like to see the tags be <% %>, but I am going to let you make that change.

@samholmes samholmes merged commit 2036f72 into from
@samholmes
Owner

I don't know why, but I don't think the Ctrl+Shift+. command is working under windows. Have you tested the code in every OS?

@videoMonkey

I have not tested in every OS, I develop on Mac, I've been contemplating switching to Linux, but I don't think I'll be on windows any time soon. I will look into this though.

@videoMonkey

there wouldn't be another shortcut assigned to that key combo would there?

@samholmes
Owner

Not sure. How could I tell?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 29, 2012
  1. @videoMonkey
This page is out of date. Refresh to see the latest.
View
7 Default (Linux).sublime-keymap
@@ -0,0 +1,7 @@
+[
+{
+ "keys": ["control+shift+."],
+ "command": "insert_snippet",
+ "args": { "name": "EJS/insert_ejs_tags.sublime-snippet" }
+}
+]
View
7 Default (OSX).sublime-keymap
@@ -0,0 +1,7 @@
+[
+{
+ "keys": ["control+shift+."],
+ "command": "insert_snippet",
+ "args": { "name": "EJS/insert_ejs_tags.sublime-snippet" }
+}
+]
View
7 Default (Windows).sublime-keymap
@@ -0,0 +1,7 @@
+[
+{
+ "keys": ["control+shift+."],
+ "command": "insert_snippet",
+ "args": { "name": "EJS/insert_ejs_tags.sublime-snippet" }
+}
+]
View
10 insert_ejs_tags.sublime-snippet
@@ -0,0 +1,10 @@
+<snippet>
+ <content><![CDATA[
+<?${1:=} ${2:$SELECTION} ?>$0
+]]></content>
+ <description><?(=) 'insert ejs tags' ?></description>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>=</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>text.html</scope>
+</snippet>
Something went wrong with that request. Please try again.