import sublime, sublime_plugin
foo = True
class test(sublime_plugin.TextCommand):
def description(self):
global foo
foo = not foo
return "*" * 120 if foo else "i'm small"
{ "command": "open_recent_file", "args": {"index": 0 } },
{ "command": "open_recent_file", "args": {"index": 1 } },
{ "command": "open_recent_file", "args": {"index": 2 } },
...
jps wrote:The open_recent_file command implements is_visible(self, index) (which plugins can also do), and uses this to give the appearance of a dynamic menu.
Users browsing this forum: No registered users and 4 guests