Sublime Forum

Prevent plugins from overwriting Sublime built-in globals?

#1

I just wrote a little plugin that will open a url that is under the current point. I simply named it “class open_url(sublime_plugin.TextCommand):”… all seemed to be working fine until I tried choosing Help > Documentation from the main menu, which no longer worked. Apparently my open_url command is overriding a built-in one of the same name.

Is there a good way to prevent this on my side, so I don’t inadvertently smack other parts of Sublime in the future?

Thanks,
John

0 Likes

#2

the sublime plugin loader could be modified to warn about two plugins with the same command name

0 Likes