Open a specific URL from ST2
Python
Switch branches/tags
Nothing to show
Pull request Compare This branch is 4 commits ahead, 4 commits behind Grafikart:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
open_browser.py

README.md

#Search anywhere for the currently selected text.

This package allows you to open any doc using text selection for Sublime Text 2.

##Install

If your using the Sublime Package Manager hold down Ctrl+Shift+p and type Package Control: Install Package. Then search for open browser and hit return.

If your not using the package manager you can download the package as a zip file Open Browser then copy it into your Sublime packages directory.

##Usage

First thing you have to do is to set up some key binding in your user key binging file, for instance :

{ "keys": ["ctrl+alt+g"], "command": "open_browser", "args" : {"url" : "http://google.fr/?q=%s"}},
{ "keys": ["ctrl+alt+w"], "command": "open_browser", "args" : {"url" : "http://codex.wordpress.org/Function_Reference/%s"}},
{ "keys": ["ctrl+alt+c"], "command": "open_browser", "args" : {"url" : "http://api20.cakephp.org/search/%s"}},
{ "keys": ["ctrl+alt+h"], "command": "open_browser", "args" : {"url" : "http://fr.php.net/manual-lookup.php?pattern=%s"}},

To use the command, select some text, use your key binding and have fun !