Skip to content

Commit d0cd603

Browse files
committed
Add \mathbold key bindings
Resolves #1568
1 parent 7f81813 commit d0cd603

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

Default (Linux).sublime-keymap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ LaTeX Package keymap for Linux
349349
{ "key": "selector", "operand": "text.tex.latex" }
350350
]
351351
},
352+
{
353+
"keys": ["ctrl+l","ctrl+b"],
354+
"command": "insert_snippet", "args": { "name":"Packages/LaTeXTools/Math boldface.sublime-snippet" },
355+
"context": [
356+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math" }
357+
]
358+
},
352359
{
353360
"keys": ["ctrl+l","ctrl+s"],
354361
"command": "insert_snippet", "args": { "name":"Packages/LaTeXTools/Text slanted.sublime-snippet" },

Default (OSX).sublime-keymap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ LaTeX Package keymap for OS X
349349
{ "key": "selector", "operand": "text.tex.latex" }
350350
]
351351
},
352+
{
353+
"keys": ["super+l","super+b"],
354+
"command": "insert_snippet", "args": { "name":"Packages/LaTeXTools/Math boldface.sublime-snippet" },
355+
"context": [
356+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math" }
357+
]
358+
},
352359
{
353360
"keys": ["super+l","super+s"],
354361
"command": "insert_snippet", "args": { "name":"Packages/LaTeXTools/Text slanted.sublime-snippet" },

Default (Windows).sublime-keymap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ LaTeX Package keymap for Linux
349349
{ "key": "selector", "operand": "text.tex.latex" }
350350
]
351351
},
352+
{
353+
"keys": ["ctrl+l","ctrl+b"],
354+
"command": "insert_snippet", "args": { "name":"Packages/LaTeXTools/Math boldface.sublime-snippet" },
355+
"context": [
356+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math" }
357+
]
358+
},
352359
{
353360
"keys": ["ctrl+l","ctrl+s"],
354361
"command": "insert_snippet", "args": { "name":"Packages/LaTeXTools/Text slanted.sublime-snippet" },

Math boldface.sublime-snippet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<description>Boldface text</description>
3+
<content><![CDATA[
4+
\\mathbf{${1:$SELECTION}}
5+
]]></content>
6+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
7+
<!-- <tabTrigger>hello</tabTrigger> -->
8+
<scope>text.tex.latex meta.environment.math</scope>
9+
</snippet>

0 commit comments

Comments
 (0)