Sublime Forum

Populating a menu dynamically

#1

Greetings! I need to populate a menu with a list of serial ports. I can generate the list in python no problem, but how can I get that information to the menu?

Thanks for any help. I’ve got a very exciting build plugin in the works!

0 Likes

#2

OK, I realized that I could put a list of dummy items in the sublime-menu file then use is_visible() / description() to control what shows up. Is there a better way? Thanks!

0 Likes