Open In Browser
Sublime Text 3 plugin to open hyper links in browsers.
Details
Installs
- Total 23K
- Win 17K
- Mac 4K
- Linux 2K
Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 1 | 2 | 3 | 0 | 0 | 1 | 2 | 0 | 1 | 5 | 2 | 2 | 0 | 2 | 4 | 4 | 6 | 1 | 1 | 5 | 1 | 2 | 2 | 3 | 0 | 1 | 0 | 2 | 1 | 2 | 3 | 2 | 3 | 0 | 3 | 5 | 8 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 2 |
Mac | 0 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 2 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 |
Linux | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
open_in_browser
Sublime Text 3 plugin to display a link when you hover over a hyperlink. On click of the link your default browser will open the link (Of course you can customise the behaviour ).
Installation
You can download this plugin from Package Control. Inside Sublime press ctrl + shift + p
(Mac users press cmd + shift + p
). Type install package and press enter
. Then type open in browser
. Select the one with spaces. Press enter
. That's it.
Customization
So, this plugin opens the default browser while you click on links. Yet, We can specify which browser must be used to open links. Navigate to Preferences -> Package Settings -> Open in Browser -> Settings
or press ctrl + shift + p
(Mac users press cmd + shift + p
) and select Preferences: Open in Browser Settings
. You'll see two JSON files. One on the left is Default settings and the other is User settings. Default settings will be like the one below.
{
"enable": true, // Set enable to false to disable this plugin
"custom_browser": "", // Set a default browser to open links
"only_on_hover": false // Make this true to get links beside URLs only on hover
}
You can disable the plugin by adding "enable": false
on User settings.
You can set the default browser to open links by adding custom_browser
as key and corresponding browser as value (Refer below).
If only_on_hover
is true
, links will be displayed only when you hover over it.
Mac
Enter the browser's name as you'd see in Applications window.
Eg: Google Chrome
, Firefox
Linux
Here, you've to provide executable name. Mostly, you'll be able to find it in /usr/bin
Eg: google-chrome
, firefox
Windows
The name with .exe extension. You can find in C:\Program Files\<app name>\*.exe
Eg: chrome
, firefox
Known Issues
- On Mac OS Sierra, though the default browser may be Chrome or Safari, If Firefox is installed, it opens the URLs all the time. We can change this behaviour (Read customization section above).
Improvements
- More Regex can be added to detect links & file paths. Feel free to make Pull requests.