Browse files

• changed scope from text.gri -> source.gri (or maybe they should all…

… be text.gri?)

• changed key equivalent to cmd-B to follow that of LaTeX (should work now that it has the proper scope)
• added quotes around misc. shell variables to handle paths and filenames with spaces (I don't have Gri, so I didn't test this change, sorry if I broke something!)

git-svn-id: dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
sorbits committed Aug 7, 2005
1 parent 0b1514d commit 071687b2f336a40a2d4ab4266c476f5ee7e43704
Showing with 5 additions and 5 deletions.
  1. +5 −5 Commands/Gri and view.plist
@@ -21,8 +21,8 @@ V=${TM_LATEX_VIEWER:=html}
DIR=`dirname "$TM_FILEPATH"`
FILE=`basename "$TM_FILEPATH"`
-PSFILE=`basename $FILE .gri`.ps
-PDFFILE=`basename $FILE .gri`.pdf
+PSFILE=`basename "$FILE" .gri`.ps
+PDFFILE=`basename "$FILE" .gri`.pdf
# Switch to the right directory.
@@ -42,7 +42,7 @@ close() {
# Compile. Bail out on errors.
echo "gri -output ${DIR}/${PSFILE} ${TM_FILEPATH}";
echo "<BR>";
-gri -output ${DIR}/${PSFILE} ${TM_FILEPATH};
+gri -output "${DIR}/${PSFILE}" "${TM_FILEPATH}";
if (($RC != 0)); then exit; fi
echo "convert ${DIR}/$PSFILE ${DIR}/$PDFFILE";
@@ -71,13 +71,13 @@ fi
- <string>@r</string>
+ <string>@b</string>
<string>Gri and view</string>
- <string>text.gri</string>
+ <string>source.gri</string>

0 comments on commit 071687b

Please sign in to comment.