Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt snippet scope to Sublime Text 4 build 4134 #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cl_image_tag.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= cl_image_tag '${1:photo_path}' {${2:options?}} %>]]></content>
<tabTrigger>cli</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>insert a rails view cloudinary cl_image_tag helper</description>
</snippet>
4 changes: 2 additions & 2 deletions comment_erb.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%# $0 %>]]></content>
<tabTrigger>pc</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>comment ERB tags</description>
</snippet>
</snippet>
2 changes: 1 addition & 1 deletion each_erb.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<% end %>
]]></content>
<tabTrigger>each</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>ERB each block</description>
</snippet>
2 changes: 1 addition & 1 deletion else_erb.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<% else %>]]></content>
<tabTrigger>else</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>ERB else tag</description>
</snippet>
2 changes: 1 addition & 1 deletion elsif_erb.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<% elsif ${1:true} %>]]></content>
<tabTrigger>elsif</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>ERB elsif tag</description>
</snippet>
4 changes: 2 additions & 2 deletions end_erb.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<% end %>
]]></content>
<tabTrigger>end</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>ERB end tag</description>
</snippet>
</snippet>
4 changes: 2 additions & 2 deletions erb_translation.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= t('$0') %>]]></content>
<tabTrigger>t</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>output ERB translation tags</description>
</snippet>
</snippet>
2 changes: 1 addition & 1 deletion f_input.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= f.input $1 %>]]></content>
<tabTrigger>fi</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>insert input for simple_form_for</description>
</snippet>
2 changes: 1 addition & 1 deletion f_submit_button.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= f.button :submit $1 %>]]></content>
<tabTrigger>fs</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>insert submit button for simple_form_for</description>
</snippet>
4 changes: 2 additions & 2 deletions form_for_erb.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<% end %>
]]></content>
<tabTrigger>ff</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>output form_for ERB</description>
</snippet>
</snippet>
2 changes: 1 addition & 1 deletion if_else_erb.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<% end %>
]]></content>
<tabTrigger>ife</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>ERB if / else / end</description>
</snippet>
4 changes: 2 additions & 2 deletions if_erb.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<% end %>
]]></content>
<tabTrigger>if</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>ERB if / end</description>
</snippet>
</snippet>
2 changes: 1 addition & 1 deletion image_tag.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= image_tag "${1:source}", alt: "${2:alttext}" %>]]></content>
<tabTrigger>it</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>insert a rails view image_tag helper</description>
</snippet>
2 changes: 1 addition & 1 deletion label_tag.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= label_tag (:${1:thing}, "${2:Your label text}") %>]]></content>
<tabTrigger>lblt</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>insert a rails view label_tag helper</description>
</snippet>
4 changes: 2 additions & 2 deletions link_to.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= link_to $1, $2 %>]]></content>
<tabTrigger>lt</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>insert a rails view link_to helper</description>
</snippet>
</snippet>
2 changes: 1 addition & 1 deletion password_tag.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= password_field_tag(:${1:thing} %>]]></content>
<tabTrigger>pft</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>insert a rails view password_field_tag helper</description>
</snippet>
4 changes: 2 additions & 2 deletions print_erb.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= $0 %>]]></content>
<tabTrigger>pe</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>output ERB tags</description>
</snippet>
</snippet>
2 changes: 1 addition & 1 deletion simple_form_for.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<% end %>
]]></content>
<tabTrigger>sf</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>insert a simple_form_for frame</description>
</snippet>
2 changes: 1 addition & 1 deletion submit_tag.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= submit_tag "${1:My Button Text}", class: "${2:class}" %>]]></content>
<tabTrigger>st</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>insert a rails view submit_tag helper</description>
</snippet>
2 changes: 1 addition & 1 deletion text_field_tag.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= text_field_tag "${1:name}", "${2:value}", placeholder: "${3:placeholder}", class: "${4:class}" %>]]></content>
<tabTrigger>tft</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>insert a rails view text_field_tag helper</description>
</snippet>
2 changes: 1 addition & 1 deletion time_ago_in_words.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[<%= time_ago_in_words($1) %>]]></content>
<tabTrigger>tw</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>insert a rails view time_ago_in_words helper</description>
</snippet>
4 changes: 2 additions & 2 deletions unless_erb.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<% end %>
]]></content>
<tabTrigger>unless</tabTrigger>
<scope>text.html.ruby</scope>
<scope>text.html.rails</scope>
<description>ERB unless / end</description>
</snippet>
</snippet>