Permalink
Browse files

changed file names, layout, readme

  • Loading branch information...
1 parent 0ba2400 commit a83b1017ccfa7c83f3c8a42d96f80dc7668e9ef1 @noahcoad committed Dec 20, 2012
View
@@ -0,0 +1,3 @@
+[
+ { "keys": ["ctrl+u"], "command": "open_url" }
+]
View
@@ -1,23 +1,20 @@
-# open-url Sublime Package
+# open_url Sublime Package
## Description
Opens URLs, files, folders, or googles text under the cursor or in a text selection.
## Install
-1. Drop the open-url.py file into your Packages directory. Click Preferences menu > Browse Packages...
-2. Add a key binding, Click Preferences menu > Key Bindings - User
-
-
- [
- { "keys": ["ctrl+u"], "command": "open_url" }
- ]
+Any one of these:
+* Copy the open_url folder in your Packages directory. Click Preferences menu > Browse Packages...
+* Clone into your Packages folder, from the Packages folder run: git clone https://github.com/noahcoad/open-url.git
+* Install using the [Sublime Package Manager](http://wbond.net/sublime_packages/package_control)
## How to Use
-Put the cursor under or select a url, file, folder, or text and run command:
+Put the cursor under or select a url, file, folder, or text and run command.
* URLs = open in browser, like http://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
-See a 1 min video about it: http://www.screencast.com/t/AmuNuwqOfg
+Watch a little 1 min [video demo](http://www.screencast.com/t/AmuNuwqOfg).
File renamed without changes.
View
@@ -0,0 +1,9 @@
+
+ open_url Sublime Text 2 Package
+
+Place cursor under these (or select) and hit ctrl+u to open
+ http://www.google.com/reader/view/
+ google.com/reader/view/
+ C:\Temp\tmp.txt example.py
+ ../Default/Preferences.sublime-settings
+ c:\Windows\Downloaded Program Files
View
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>hello world</title>
- <link rel="stylesheet" type="text/css" href="main.css">
- <script type="text/javascript" src="main.js"></script>
- <style type="text/css" /> body { font: 10pt verdana; } </style>
- </head>
- <body>
- <h1>Hello World</h1>
- <a href="http://coadblog.com">coadblog.com</a>
- <p>http://www.cheaptickets.com/cheap-car-rental/ has great low car rentals</p>
- </body>
-<html>
View
@@ -1,10 +0,0 @@
-
- open-url Sublime Package
-
-This is just a plain text file
- http://www.google.com/reader/view/
- google.com/reader/view/
- C:\Temp\tmp.txt
- example.html example.py
- ../open-url.py
- c:\Windows\Downloaded Program Files
@@ -1,42 +1,8 @@
-#
-# title: open-url
-# desc: Opens a selected url/file/folder (or url under the cursor)
-# platform: a Package plugin for Sublime Text 2
-# hosted: https://github.com/noahcoad/open-url
-# created: Noah Coad, 12/18/2012
-#
-# Put the cursor under a url or file/folder without space in it, or select some text
-# Run command and it will either be:
-# URLs = open in browser
-# folder = open in explorer/finder
-# file = given the choise to Edit or Run
-# other = google it
-#
-# Resources
-# Original base code from here, https://gist.github.com/3542836
-# API, http://www.sublimetext.com/docs/2/api_reference.html
-# os, http://docs.python.org/3/library/os.html
-# os.path, http://docs.python.org/3/library/os.path.html#module-os.path
-# plugins in general, http://net.tutsplus.com/tutorials/python-tutorials/how-to-create-a-sublime-text-2-plugin/
-#
-# Improvements
-# Active
-# open urls from multiple selection
-# Done
-# for files, show menu to 'edit' or 'run'
-#
-# Test strings
-# https://gist.github.com/3542836 noahcoad.com/tools
-# google.com c:\temp\test.log c:\booyah c:\temp example.py Context.sublime-menu c:\temp\tmp.bat
-# "c:\temp\test.log" C:\Temp\head.txt
+# Open URL opens selected URLs, files, folders, or googles text
+# Hosted at http://github.com/noahcoad/open-url
-
-import sublime
-import sublime_plugin
-import webbrowser
-import thread
-import re
-import os
+import sublime, sublime_plugin
+import webbrowser, urllib, thread, re, os
class OpenUrlCommand(sublime_plugin.TextCommand):
open_me = ""
@@ -0,0 +1,6 @@
+[
+ {
+ "caption": "Open URL",
+ "command": "open_url"
+ }
+]

0 comments on commit a83b101

Please sign in to comment.