sublime_plugin.WindowCommand

ST2 WindowCommands are instantiated once per window. The Window object may be retrieved via self.window



ST3

WindowCommands are instantiated once per window. The Window object may be retrieved via self.window



description ST2≠3

ST2 description(<args>) # => String

Returns a description of the command with the given arguments. Used in the menu, if no caption is provided. Return None to get the default description.



ST3 description(<args>) # => str

Returns a description of the command with the given arguments. Used in the menu, if no caption is provided. Return None to get the default description.



is_enabled ST2≠3

ST2 is_enabled(<args>) # => bool

Returns true if the command is able to be run at this time. The default implementation simply always returns True.



ST3 is_enabled(<args>) # => bool

Returns True if the command is able to be run at this time. The default implementation simply always returns True.



is_visible ST2≠3

ST2 is_visible(<args>) # => bool

Returns true if the command should be shown in the menu at this time. The default implementation always returns True.



ST3 is_visible(<args>) # => bool

Returns True if the command should be shown in the menu at this time. The default implementation always returns True.



run ST2&3

ST2&3 run(<args>) # => None

Called when the command is run.




Generated from the official documentation on Sat Oct 29 20:16:37 EEST 2016 by Leonid Shevtsov.