Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pressing ⌅ to open a URL also works when caret is at the end

Previously when caret was placed immediately after a URL, the key would not work to open it. This is fixed by looking at the caret’s left scope as well as the right one.
  • Loading branch information...
commit e37fd810cd735032cfc4cae5c102e5a4b27e9a2f 1 parent 2d3180b
@infininight infininight authored sorbits committed
View
17 Commands/Open Current URL.tmCommand
@@ -1,25 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>open "$(cat)"
+ <string>#!/bin/bash
+exec open "$(cat)"
</string>
<key>fallbackInput</key>
<string>scope</string>
<key>input</key>
<string>selection</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string></string>
<key>name</key>
<string>Open Current URL</string>
- <key>output</key>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
+ <key>outputFormat</key>
+ <string>text</string>
+ <key>outputLocation</key>
<string>discard</string>
<key>scope</key>
- <string>markup.underline.link - markup.underline.link.relative</string>
+ <string>(L:markup.underline.link | R:markup.underline.link) - markup.underline.link.relative</string>
<key>uuid</key>
<string>5A08E461-05CC-4C03-9DC8-BF118594EA3E</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
View
2  Commands/Open Issue Link.tmCommand
@@ -37,7 +37,7 @@ end
<key>outputLocation</key>
<string>discard</string>
<key>scope</key>
- <string>markup.underline.link.issue</string>
+ <string>L:markup.underline.link.issue | R:markup.underline.link.issue</string>
<key>uuid</key>
<string>D01C6CD1-A0CF-46AF-AB0E-DF8C5CAB1B36</string>
<key>version</key>
Please sign in to comment.
Something went wrong with that request. Please try again.