Skip to content
forked from noahcoad/open-url

Open URLs, files, folders, or google text under the cursor or in selected text (for Sublime Text 2).

Notifications You must be signed in to change notification settings

jadient/open-url

 
 

Repository files navigation

Open URL a Sublime Text 2 Package

Description

Opens URLs, files, folders, or googles text under the cursor or in a text selection.

Install

Any one of these:

How to Use

Put the cursor under or select a url, file, folder, or text and run command.

  • URLs = open in browser, like https://google.com or amazon.com/prime
  • folder = open in finder/explorer, like c:\windows
  • file = choice to Edit or Run, like ~/.bashrc
  • other = google it, any text

Ways to run the command:

  • ctrl+u
  • right-click > 'Open URL' (from context menu)
  • ctrl+shift+p > 'Open URL' (from list of ST2 commands)
  • alt + double-click (opens what's under the cursor, does not open text selection)

Watch a little 1 min video demo.

Options

Default Actions

You can set specific file extensions to be edit or run without being prompted with a menu. The default has been set for .sublime-project .txt and a few other files types. Open open_url.sublime-settings to change and add your own.

  • If the action is 'edit' it will be opened for editing in Sublime
  • If the action is 'run' it will be executed by the OS
  • You can add an 'openwith': 'myprogram.exe' to the end of an 'endswith' line to specify a specific a program to open the file with. In this case the shell will execute the openwith program and the selection will be a parameter.

Credits

Thanks goes to peterc for starting a forum thread about this topic and KatsuomiK for his gist that was the start of this plugin.

About

Open URLs, files, folders, or google text under the cursor or in selected text (for Sublime Text 2).

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%