Sublime Forum

Change contents of context-menu dynamically?

#1

I have a plugin that makes certain actions available in certain situations. Right now all of the available actions are in the context menu, but I would like to be able to disable/enable actions as my uniquely defined context changes. Is this possible? If so, can someone suggest a plugin that uses this feature so I can review its code and figure out how to implement it myself?

Thanks :smiley:

0 Likes

#2

Look at is_visible() in sublimetext.com/docs/3/api_reference.html.

0 Likes

#3

Got it. Had to look around for some examples of how to use that, but I figured it out. Thanks! We need more thorough documentation!

0 Likes