Created
February 7, 2012 14:48
-
-
Save airways/1760030 to your computer and use it in GitHub Desktop.
Find Defintion
This file contains hidden or 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
<?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>beforeRunningCommand</key> | |
<string>nop</string> | |
<key>bundleUUID</key> | |
<string>0374A255-E6D9-4CD7-8FB6-4F7DAE99AFC7</string> | |
<key>command</key> | |
<string>read text | |
if [ "$text" != "" ]; then | |
file=$(grep "[class|function] $text" -l -n -d recurse $TM_PROJECT_DIRECTORY) | |
count=$(echo "$file" | wc -w) | |
count=$(echo $count) | |
if [ "$count" -le "3" ]; then | |
echo "Found results in:" | |
echo "$file" | |
echo $file|tr ' ' '\n'|xargs -I {} open {} | |
else | |
echo "Too many results [$count]:" | |
echo "$file" | |
fi | |
fi</string> | |
<key>fallbackInput</key> | |
<string>word</string> | |
<key>input</key> | |
<string>selection</string> | |
<key>keyEquivalent</key> | |
<string>@d</string> | |
<key>name</key> | |
<string>Find Defintion</string> | |
<key>output</key> | |
<string>showAsTooltip</string> | |
<key>uuid</key> | |
<string>68BA65FB-807F-428D-A46F-F84C90F8CCB9</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment