If a class has been declared for example as:
class GenericNameOfAClassCommand(sublime_plugin.TextCommand)or as:
class AnotherNameHandler(sublime_plugin.InputHandler)Then when refering to the class in the same package folder, such as in another “.py” extension the name is the same. BUT when refering to this classes in a “.sublime-extension” or in the console than the name changes.
For the
GenericNameOfAClassCommandclass the name becomesgeneric_name_of_a_Class
And for
AnotherNameHandlerit becomesanother_name
The general protocol is:
- The first letter is lower case.
- All the upper case letters after the first are replaced with ”_” + the corrisponding lower case letter.
- If there is a “_command” part at the end, or a “_handler” part, then it is removed.