welovewordpress / SublimeWordPressCodex

Search the WordPress Codex or open the selected function in WordPress Function Reference with just two clicks.
48 stars 9 forks source link

Replace webbrowser.open_new_tab with native sublime API call to fix browser inconsistencies #2

Closed rarescosma closed 11 years ago

rarescosma commented 11 years ago

When using the python webbrowser module, the plug-in opens the wrong browser (Firefox instead of Chrome), on Linux.

Replacing the calls to webbrowser.open_new_tab with the built-in sublime API call sublime.active_window().run_command('open_url', ...) seems to correct this problem.

welovewordpress commented 11 years ago

Thank you!