Skip to content

Commit c0ff671

Browse files
committed
Use "=" binding to equal position in all key bindings
1 parent 4716340 commit c0ff671

File tree

3 files changed

+36
-33
lines changed

3 files changed

+36
-33
lines changed

Default (Linux).sublime-keymap

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ LaTeX Package keymap for Linux
132132
]
133133
},
134134

135+
{
136+
"keys": ["="],
137+
"command": "latextools_fill_all", "args": { "completion_type": "directive", "insert_char": "=" },
138+
"context": [
139+
{ "key": "setting.command_mode", "operand": false },
140+
{ "key": "setting.disable_latex_ref_cite_auto_trigger", "operand": false },
141+
{ "key": "selector", "operand": "text.tex.latex comment.line.percentage" },
142+
{ "key": "selection_empty", "match_all": true },
143+
{ "key": "lt_fill_all_directive.equal_sign", "match_all": true }
144+
]
145+
},
146+
135147
// \cite{,}
136148
{
137149
"keys": ["{"],
@@ -190,17 +202,6 @@ LaTeX Package keymap for Linux
190202
{ "key": "lt_fill_all_ref.comma", "match_all": true }
191203
]
192204
},
193-
{
194-
"keys": ["="],
195-
"command": "latextools_fill_all", "args": { "completion_type": "directive", "insert_char": "=" },
196-
"context": [
197-
{ "key": "setting.command_mode", "operand": false },
198-
{ "key": "setting.disable_latex_ref_cite_auto_trigger", "operand": false },
199-
{ "key": "selector", "operand": "text.tex.latex comment.line.percentage" },
200-
{ "key": "selection_empty", "match_all": true },
201-
{ "key": "lt_fill_all_directive.equal_sign", "match_all": true }
202-
]
203-
},
204205

205206
// \input{,}
206207
{

Default (OSX).sublime-keymap

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ LaTeX Package keymap for OS X
132132
]
133133
},
134134

135+
{
136+
"keys": ["="],
137+
"command": "latextools_fill_all", "args": { "completion_type": "directive", "insert_char": "=" },
138+
"context": [
139+
{ "key": "setting.command_mode", "operand": false },
140+
{ "key": "setting.disable_latex_ref_cite_auto_trigger", "operand": false },
141+
{ "key": "selector", "operand": "text.tex.latex comment.line.percentage" },
142+
{ "key": "selection_empty", "match_all": true },
143+
{ "key": "lt_fill_all_directive.equal_sign", "match_all": true }
144+
]
145+
},
146+
135147
// \cite{,}
136148
{
137149
"keys": ["{"],
@@ -166,17 +178,6 @@ LaTeX Package keymap for OS X
166178
{ "key": "lt_fill_all_cite.comma", "match_all": true }
167179
]
168180
},
169-
{
170-
"keys": ["="],
171-
"command": "latextools_fill_all", "args": { "completion_type": "directive", "insert_char": "=" },
172-
"context": [
173-
{ "key": "setting.command_mode", "operand": false },
174-
{ "key": "setting.disable_latex_ref_cite_auto_trigger", "operand": false },
175-
{ "key": "selector", "operand": "text.tex.latex comment.line.percentage" },
176-
{ "key": "selection_empty", "match_all": true },
177-
{ "key": "lt_fill_all_directive.equal_sign", "match_all": true }
178-
]
179-
},
180181

181182
// \ref{,}
182183
{

Default (Windows).sublime-keymap

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ LaTeX Package keymap for Linux
132132
]
133133
},
134134

135+
{
136+
"keys": ["="],
137+
"command": "latextools_fill_all", "args": { "completion_type": "directive", "insert_char": "=" },
138+
"context": [
139+
{ "key": "setting.command_mode", "operand": false },
140+
{ "key": "setting.disable_latex_ref_cite_auto_trigger", "operand": false },
141+
{ "key": "selector", "operand": "text.tex.latex comment.line.percentage" },
142+
{ "key": "selection_empty", "match_all": true },
143+
{ "key": "lt_fill_all_directive.equal_sign", "match_all": true }
144+
]
145+
},
146+
135147
// \cite{,}
136148
{
137149
"keys": ["{"],
@@ -190,17 +202,6 @@ LaTeX Package keymap for Linux
190202
{ "key": "lt_fill_all_ref.comma", "match_all": true }
191203
]
192204
},
193-
{
194-
"keys": ["="],
195-
"command": "latextools_fill_all", "args": { "completion_type": "directive", "insert_char": "=" },
196-
"context": [
197-
{ "key": "setting.command_mode", "operand": false },
198-
{ "key": "setting.disable_latex_ref_cite_auto_trigger", "operand": false },
199-
{ "key": "selector", "operand": "text.tex.latex comment.line.percentage" },
200-
{ "key": "selection_empty", "match_all": true },
201-
{ "key": "lt_fill_all_directive.equal_sign", "match_all": true }
202-
]
203-
},
204205

205206
// \input{,}
206207
{

0 commit comments

Comments
 (0)