Sublime Forum

Key Bindings ["shift + plus"]

#1

Hello everyone,

I need help. I tried to add a Key Binding to sublime witch replaced the * in a spezial section in LaTex but “shift+plus”] or “shift++”] or “shift+’+’”] or “shift+*”] doesn’t work. “shift+keypad_plus”] works but my laptop doesn’t have a keypad, some ideas?

{ "keys": "shift+plus"], "command": "insert_snippet", "args": {"name": "Packages/User/Latex_Snippets/cdot.sublime-snippet"}, "context":{ "key": "selector", "operator": "equal", "operand": "string.other.math.tex, string.other.math.latex, string.other.math.block.environment.latex" }] },

0 Likes

#2

A single ‘+’ works for me but it makes you never type a plus.
It’s not a good idea using shift+char as a binding imo…

0 Likes

#3

Yes and no, the context is the Key. With

"context":{ "key": "selector", "operator": "equal", "operand": "string.other.math.tex, string.other.math.latex, string.other.math.block.environment.latex" }]

I never type a * in math mode of Latex but I actually never want to do this because its ugly.

  • works but I need “shift+plus” to eliminate the * in math mode
0 Likes

#4

Sorry guys, I’m so stupid. I just had to type “*” instead of “shift+plus”

0 Likes