by jps on Tue Sep 06, 2011 1:09 pm
btw, you should be able to just run the 'run_macro' command n times, rather than having to do it the long way via get_macro(). It'll be faster to do it this way, too, but depending on what the bottleneck is this may make no difference.
Repeating a macro n times is generally done to apply an operation to multiple lines. You can do this more directly in Sublime Text: select the lines of interest, then split the selection into lines (ctrl+shift+l or cmd+shift+l depending on platform), and then either do the edits directly, or just replay the macro once, and it'll apply to all lines.