Skip to content

Commit

Permalink
Fix documentation command
Browse files Browse the repository at this point in the history
When there is a selection, the Documentation command uses the selection
instead of the scope to try and look up documentation.
This mode is broken if the surrounding quotes are not selected as well.

This change fixes that by using the whole scope unconditionally,
including the quotes.
  • Loading branch information
mkhl committed Aug 10, 2016
1 parent bfb4269 commit 5067ef6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Commands/Documentation for Application.tmCommand
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/bin/bash
<string>#!/bin/bash
read appname
osascript &lt;&lt;-APPLESCRIPT
Expand All @@ -16,10 +16,8 @@ osascript &lt;&lt;-APPLESCRIPT
end tell
APPLESCRIPT
</string>
<key>fallbackInput</key>
<string>scope</string>
<key>input</key>
<string>selection</string>
<string>scope</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
Expand Down

0 comments on commit 5067ef6

Please sign in to comment.