PackageDev needs to know what commands exist in order to perform autocompletion, and it provides an implementation of the necessary logic (as well as a list of known built-in commands). The same logic could be useful for other packages as well. For instance, I have an unpublished concise keymap package that could provide similar autocomplete functionality.
Integrating this functionality into sublime_lib, in a similar-ish manner to sublime_lib.list_syntaxes() and such, would allow other plugins to easily make use of it. It would also be an opportunity to add a robust test suite.
PackageDev needs to know what commands exist in order to perform autocompletion, and it provides an implementation of the necessary logic (as well as a list of known built-in commands). The same logic could be useful for other packages as well. For instance, I have an unpublished concise keymap package that could provide similar autocomplete functionality.
Integrating this functionality into sublime_lib, in a similar-ish manner to
sublime_lib.list_syntaxes()and such, would allow other plugins to easily make use of it. It would also be an opportunity to add a robust test suite.