Sublime Forum

Looking for an ST3 generic hyperlink pluggin

#1

I tried using HyperlinkHelper but it fails with errors about none_type.mustache not found.

Is there a simple hyperlink pluggin that will allow you to click on hyperlinks within your files or a command pluggin to open up your default browser at a given URL?

0 Likes

#2

https://packagecontrol.io/packages/Clickable%20URLs

0 Likes

#3

I also found it odd that I was unable to find any command that would let me open an URL from a menu that I had defined. Like I was trying to add shortcuts in the menus to jump to the websites documenting the API. I had to write my own simple “open_url” command.

Am I overlooking something obvious?

import sublime_plugin
import webbrowser

class OpenUrlCommand(sublime_plugin.TextCommand):
    def run(self, edit, url):
        webbrowser.open_new_tab(url)

    def want_event(self):
        return False
0 Likes

#4

Never mind it looks like open_url is already a built in command though I failed to find it documented anywhere.

1 Like

#5

You can just rightclick on an url and then select Open ….

0 Likes