Sublime Forum

Adding a menu where the console is located, similar to SublimeLinter

#1

I’m familiar with how to create a menu entry - such as by writing a Main.sublime-menu file - but I’m not sure how I can get a menu entry in the panel in the bottom left corner where the console and find/replace are located.

I’ve looked in the SublimeLinter files, but have not been able to find the method which accomplishes this effect. Any ideas?

0 Likes

#2

That menu shows you all of the available panels, so in order to add a menu item there you need to create a panel, which you can do via the window.create_output_panel() API endpoint. For example, try entering the following in the Sublime console and then checking the menu.

window.create_output_panel("My Panel")

That said, as seen here the menu item is for displaying the panel, so this isn’t usable in the general case (i.e. you can’t add arbitrary commands to it, it’s just for switching panels).

0 Likes