Permalink
Browse files

Changes from a while ago

  • Loading branch information...
1 parent a3f4db3 commit beb237e8e1946bc15564bb7d15cb5b1d9c402214 @dhowden committed Dec 12, 2011
@@ -15,6 +15,14 @@ function lookup_function {
open txmt://open?url=file://"$2"\&line="$LINE" &>/dev/null &
exit 0
fi
+
+ # check to see if there is an intrinsic with this name
+ local LINE=`sed -n '/intrinsic '"$1"'/=' "$2"`
+ if [[ "$LINE" -gt 0 ]]; then
+ open txmt://open?url=file://"$2"\&line="$LINE" &>/dev/null &
+ exit 0
+ fi
+
}
# look in the the current file
@@ -5,9 +5,9 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>open http://magma.maths.usyd.edu.au/magma/handbook/search?intrinsics=1\&amp;query="$TM_CURRENT_WORD" &amp;&gt;/dev/null &amp;
+ <string>. "$TM_SUPPORT_PATH/lib/webpreview.sh"
+open http://magma.maths.usyd.edu.au/magma/handbook/search?intrinsics=1\&amp;query="$TM_CURRENT_WORD" &amp;&gt;/dev/null &amp;
exit 0
-
</string>
<key>input</key>
<string>none</string>
@@ -16,7 +16,7 @@ exit 0
<key>name</key>
<string>Search documentation</string>
<key>output</key>
- <string>showAsTooltip</string>
+ <string>discard</string>
<key>scope</key>
<string>support.function.magma</string>
<key>uuid</key>
@@ -7,6 +7,7 @@
<string>m</string>
<string>magma</string>
<string>.magmarc</string>
+ <string>.magmarc-dev</string>
</array>
<key>foldingStartMarker</key>
<string>/\*\*|\{\s*$|^\s*(function|procedure|intrinsic|if|for|while|case|repeat|try)\b|^\s*\b([A-Za-z_][A-Za-z0-9_]*)\b\s*:=\s*\b(function|procedure)\b</string>

0 comments on commit beb237e

Please sign in to comment.