Sublime Forum

Unable to parse command

#1

This is my first day with Sublime, so I apologize if I’m missing something basic. I’m trying to write a macro and use a key binding to call it. I saved my macro as “test”, and I know it executes properly as I can call it from Tools -> Macros -> test without issue.

My key binding is:

{ “keys”: “ctrl+escape”], “command”: “run_macro_file test.sublime-macro” }

I’ve tried just “test” as the file name, a comma between run_macro_file and the filename, and several other iterations. The key binding file saves without error. But when I try the key combination, I get:

Unable to parse command: run_macro_file, test.sublime-macro

Any suggestions?

0 Likes

#2
{ "keys": "ctrl+escape"], "command": "run_macro_file", "args": {"file": "Packages/User/test.sublime-macro"}
0 Likes

#3

Great! Thanks. That worked (needed another curly brace at the end). Is it documented anywhere? I looked but only found what I guess is the old documentation.

0 Likes