Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added a command to open the current file in the OpenGL Shader Builder

  • Loading branch information...
commit 6ca4b5bb76983b25bbbd1df21a8c51f25324c71e 1 parent 3542877
@polym0rph authored
View
28 Commands/Open in OpenGL Shader Builder.tmCommand
@@ -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>
View
2  Syntaxes/GLSL.tmLanguage
@@ -6,6 +6,8 @@
<array>
<string>vs</string>
<string>fs</string>
+ <string>vert</string>
+ <string>frag</string>
</array>
<key>foldingStartMarker</key>
<string>/\*\*|\{\s*$</string>
View
1  info.plist
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.