Skip to content

Commit

Permalink
added a command to open the current file in the OpenGL Shader Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
polym0rph committed Dec 1, 2009
1 parent 3542877 commit 6ca4b5b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Commands/Open in OpenGL Shader Builder.tmCommand
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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>command</key>
<string>#!/bin/bash
osascript -e \
"tell app \"OpenGL Shader Builder\"
activate
open \"$TM_FILEPATH\"
end tell"</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>^@O</string>
<key>name</key>
<string>Open in OpenGL Shader Builder</string>
<key>output</key>
<string>discard</string>
<key>scope</key>
<string>source.glsl</string>
<key>uuid</key>
<string>4CE10D4A-AA23-44B8-9F4B-18910F9C8E23</string>
</dict>
</plist>
2 changes: 2 additions & 0 deletions Syntaxes/GLSL.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<array>
<string>vs</string>
<string>fs</string>
<string>vert</string>
<string>frag</string>
</array>
<key>foldingStartMarker</key>
<string>/\*\*|\{\s*$</string>
Expand Down
1 change: 1 addition & 0 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<dict>
<key>items</key>
<array>
<string>4CE10D4A-AA23-44B8-9F4B-18910F9C8E23</string>
<string>E66E7621-ECC8-4DA1-90E6-3D572B8A1CA1</string>
<string>68F6E724-3437-4601-B85E-8CA1FD1805BF</string>
</array>
Expand Down

0 comments on commit 6ca4b5b

Please sign in to comment.