Skip to content

Commit

Permalink
Make tab triggers more verbose
Browse files Browse the repository at this point in the history
Tab triggers for each flag now contain more words.
This makes it easier to select a specific flag
by typing words in the flag in addition to using
the up or down arrow keys.
  • Loading branch information
barryceelen committed Oct 14, 2017
1 parent 2030e09 commit c066074
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion snippets/cache.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: cache ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs cache</tabTrigger>
<scope>source.php</scope>
<description>WPCS: cache ok</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/csrf.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: CSRF ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs csrf</tabTrigger>
<scope>source.php</scope>
<description>WPCS: CSRF ok</description>
</snippet>
4 changes: 2 additions & 2 deletions snippets/db-call.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: db call ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<scope>source.php</scope>
<tabTrigger>wpcs db call</tabTrigger>
<scope>source.php, comment</scope>
<description>WPCS: db call ok</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/input-var.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: input var okay.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs input var</tabTrigger>
<scope>source.php</scope>
<description>WPCS: input var okay</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/loose-comparison.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: loose comparison ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs loose comparison</tabTrigger>
<scope>source.php</scope>
<description>WPCS: loose comparison ok</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/override.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: override ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs override</tabTrigger>
<scope>source.php</scope>
<description>WPCS: override ok</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/precision-alignment.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: precision alignment ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs precision alignment</tabTrigger>
<scope>source.php</scope>
<description>WPCS: precision alignment ok</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/prefix.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: prefix ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs prefix</tabTrigger>
<scope>source.php</scope>
<description>WPCS: prefix ok</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/sanitization.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: sanitization ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs sanitization</tabTrigger>
<scope>source.php</scope>
<description>WPCS: sanitization ok</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/slow-query.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: slow query ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs slow query</tabTrigger>
<scope>source.php</scope>
<description>WPCS: slow query ok</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/spelling.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: spelling ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs spelling</tabTrigger>
<scope>source.php</scope>
<description>WPCS: spelling ok</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/unprepared-sql.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: unprepared SQL ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs unprepared sql</tabTrigger>
<scope>source.php</scope>
<description>WPCS: unprepared SQL ok</description>
</snippet>
2 changes: 1 addition & 1 deletion snippets/xss.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<content><![CDATA[
// WPCS: XSS ok.
]]></content>
<tabTrigger>wpcs</tabTrigger>
<tabTrigger>wpcs xss</tabTrigger>
<scope>source.php</scope>
<description>WPCS: XSS ok</description>
</snippet>

0 comments on commit c066074

Please sign in to comment.