Sublime Forum

show_overlay in macro

#1

Hi,

I can’t get show_overlay command to trigger inside of a macro file. I want to make a macro where I switch to other panel first and then invoke show_overlay. But even if I put just show_overlay inside macro, and try to run that macro, overlay isn’t open.
Here’s the code for macro:

[
	{
		"command": "show_overlay",
		"args": {"overlay": "goto", "show_files": true}
	}
]

Macro file is run properly on key press. I can confirm that, because I tried to put something else inside it and it worked. Can someone shed some light on this?

Thanks,
Vjekoslav

0 Likes

#2

I suspect show_overlay is a WindowCommand, and macros only work with TextCommands

2 Likes

#3

Thanks for a quick response. So the only way to do it is with a plugin?

0 Likes

#4

Yes

maybe https://packagecontrol.io/packages/Chain%20of%20Command will be useful, so you won’t have to roll your own

0 Likes

#5

Thanks, works perfectly.

0 Likes