Skip to content

Instantly share code, notes, and snippets.

@hanksudo
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanksudo/3c0b5498e94a07298658 to your computer and use it in GitHub Desktop.
Save hanksudo/3c0b5498e94a07298658 to your computer and use it in GitHub Desktop.
Mako translate warp with selection
[
{ "keys": ["alt+super+t"], "command": "insert_snippet", "args": {"name": "Packages/User/mako-translate.sublime-snippet"} }
]
<snippet>
<content><![CDATA[
\$\{t('$SELECTION')\}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>t(</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.mako</scope>
<description>Mako Translate Snippet</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment