Skip to content

Commit

Permalink
Version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
inopinatus committed Aug 2, 2017
1 parent df725cf commit 5af3a3f
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
37 changes: 37 additions & 0 deletions README.md
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).
63 changes: 63 additions & 0 deletions SublimeUrl.app/Contents/Info.plist
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 added SublimeUrl.app/Contents/MacOS/applet
Binary file not shown.
1 change: 1 addition & 0 deletions SublimeUrl.app/Contents/PkgInfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPLaplt
Binary file not shown.
Binary file not shown.
Binary file added SublimeUrl.app/Contents/Resources/applet.rsrc
Binary file not shown.
5 changes: 5 additions & 0 deletions SublimeUrl.app/Contents/Resources/description.rtfd/TXT.rtf
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.

0 comments on commit 5af3a3f

Please sign in to comment.