Sublime Forum

Keybinding context question

#1

Hello,

I would like to use keybinding Alt+C for running the ConvertHexToUnicodeCharacter.py plugin (found here [Options for typing Unicode characters].
However I only want it to trigger when editing text, not when using the find panel. If the find panel is visible I would like to use Alt+C for toggling case sensitivity.

I tried

{ “keys”: [“alt+c”],
“command”: “run_macro_file”,
“args”: {“file”: “Packages/User/ConvertToUnicodeToTheLeft.sublime-macro”},
“context”:
[{“key” : “panel_has_focus”, “operator”: “equal”, “operand”: “false”}],
},

but it does not work. What am I doing wrong?

0 Likes

#2

Try having the false after operand be without quotation marks

0 Likes