Sublime Forum

Macro that spans different documents

#1

I’m trying to sequentially copy/paste between documents with a macro, but it seems the macro ignores what I do in the second document. I checked the macro file and I cannot see anything I do in the second document.

Is it possible?
How it is done?

Oh and BTW I’m still using ST2.

0 Likes

#2

Try to use the “next_view” command in a macro. I think that macros do not support window commands so you probably won’t be able to automate your process using a macro.

What you can do though is wrapping the macros within a Python plugin which can run the first macro, then switch the views and then run the second macro. Beware of “*.run_command()” running asynchronously!

0 Likes