Firstly I’m not sure if this has been covered before, I’ve done some searching and cannot find anything that describes exactly my thoughts here… Please feel free to chime in, I’d love to hear what others think before I file a feature request. (Also if there is a way to accomplish what I’m talking about without a new feature, please let me know… but as it stands anything close I’ve found seems inconsistent)
I’m using Sublime Text 2 & if I install all the plugins I use frequently, that there is some overlap in shortcuts & inconsistency in menu/palate use for various plugins. This hasn’t really been a big issue, I can change shortcuts and add menu extensions in the user folder to make things a little easier when I’m tired, or I am constantly switching coding focuses.
My thoughts boil down to this: It would be nice to see a “display” of where shortcuts, menus, and palates are defined across the entire packages folder by iterating over the shortcuts/menus themselves… not the definitions. I would also like to see each definition establish a uid that is procedurally created from package>type>command>etc. That way overriding definitions could be created for one command, instead of two, in cases where two plugins have laid claim to a single shortcut.
For example, Plugin A & Plugin B both use the shortcut:
CTRL + SUPER + `
The “display page” could be something like this:
CTRL + SUPER + `
1) Plugin A: "some_display_command", ID: ef17cb4275aa7472f230e91aa4971027
2) Plugin B: "some_format_command", ID: 5143982b75f7dc7a0f19901b50a94691
The “ID” in this case is the following string as an md5: “pkg_plugin_a_shortcut_some_display_command”. The order shows us which is loaded on top. Lets say I want Plugin B to have the shortcut and Plugin A to move… by using the “id of the definition” I could tell sublime to “move” Plugin A’s command in a single definition… allowing Plugin B to implicitly retake priority. Right now I have to make two definitions one moving Plugin A, the other re-establishing Plugin B.
Menus are another example of how re-defining things isn’t a perfect fix. I can make an entry in the menu I want… but I have to alter the plugin to remove the original (a change that will be lost on updating).
If by some chance there is a way to do this currently, or there is a different plan moving forward, I’d love to hear it. But so far anything I’ve tried has been inconsistent.
Best,
Matt
Edit: Wordiness