-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df725cf
commit 5af3a3f
Showing
10 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Sublime Text URL handler | ||
|
||
A URL handler for **Sublime Text 3** on Mac OSX. Made using JavaScript for Automation. Tested on Mac OS Sierra 10.12.6. Implements a Sublime Text variant of the [TextMate URL scheme](http://blog.macromates.com/2007/the-textmate-url-scheme/). | ||
|
||
## Installation | ||
|
||
- Download the current release[SublimeUrl-1.0.zip](https://github.com/inopinatus/sublime_url/releases/download/v1.0/SublimeUrl-1.0.zip) | ||
- Extract SublimeUrl.app and place in your user **Applications** directory. | ||
- Run once to register the handler. | ||
|
||
## How to use | ||
|
||
Have your debugging tool/exception handling produce URLs in the following format: | ||
`subl://open?url=file://{{file}}&line={{line}}&column={{column}}` | ||
|
||
Examples: | ||
- `subl://open?url=file:///path/to/file.js&line=19&column=4` | ||
- `subl://open?url=file:///path/to/other.css&line=127` | ||
|
||
`url` is required and the file must exist or an error is given. SublimeUrl expects to find Sublime Text in `/Applications/Sublime Text.app`. | ||
|
||
## Sublime Text and Ruby on Rails errors | ||
|
||
This add-on was developed specifically for use with the [Better Errors](https://github.com/charliesome/better_errors) gem although it should work with anything that follows the specified URL format. See the [Better Errors Wiki](https://github.com/charliesome/better_errors/wiki) for more information. | ||
|
||
## Contributing | ||
|
||
Bug reports and pull requests are welcome on GitHub at https://github.com/inopinatus/sublime_url. | ||
|
||
## History | ||
|
||
#### Version 1.0 | ||
This project was written from scratch as a drop-in replacement for the *Subl* handler by [Dave Houlbrooke](https://github.com/dhoulb) which has since been retired. | ||
|
||
## License | ||
|
||
This code is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleAllowMixedLocalizations</key> | ||
<true/> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleExecutable</key> | ||
<string>applet</string> | ||
<key>CFBundleIconFile</key> | ||
<string>sublime_url</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>org.inopinatus.SublimeUrl</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>SublimeUrl</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>aplt</string> | ||
<key>CFBundleURLTypes</key> | ||
<array> | ||
<dict> | ||
<key>CFBundleURLName</key> | ||
<string>Sublime Text Handler for subl:// URLs</string> | ||
<key>CFBundleURLSchemes</key> | ||
<array> | ||
<string>subl</string> | ||
</array> | ||
</dict> | ||
</array> | ||
<key>LSMinimumSystemVersionByArchitecture</key> | ||
<dict> | ||
<key>x86_64</key> | ||
<string>10.6</string> | ||
</dict> | ||
<key>LSRequiresCarbon</key> | ||
<true/> | ||
<key>WindowState</key> | ||
<dict> | ||
<key>bundleDividerCollapsed</key> | ||
<true/> | ||
<key>bundlePositionOfDivider</key> | ||
<real>0.0</real> | ||
<key>dividerCollapsed</key> | ||
<false/> | ||
<key>eventLogLevel</key> | ||
<integer>2</integer> | ||
<key>name</key> | ||
<string>ScriptWindowState</string> | ||
<key>positionOfDivider</key> | ||
<real>421</real> | ||
<key>savedFrame</key> | ||
<string>958 444 700 672 0 0 2560 1417 </string> | ||
<key>selectedTab</key> | ||
<string>description</string> | ||
</dict> | ||
</dict> | ||
</plist> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APPLaplt |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{\rtf1\ansi\ansicpg1252\cocoartf1504\cocoasubrtf830 | ||
{\fonttbl} | ||
{\colortbl;\red255\green255\blue255;} | ||
{\*\expandedcolortbl;;} | ||
} |
Binary file not shown.