Permalink
Browse files

added new syntax, run in processing command, and snippets

git-svn-id: http://svn.textmate.org/trunk/Bundles/Processing.tmbundle@2856 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent cfcddb2 commit b7918b591f935363bfcdd931193e22158a1be1cd Chandler McWilliams committed Mar 15, 2006
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//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>osascript -e 'try' -e 'tell application "Processing"' -e 'activate' -e 'end tell' -e 'tell application "System Events"' -e 'tell process "Processing"' -e 'tell menu bar 1' -e 'tell menu bar item "Sketch"' -e 'tell menu "Sketch"' -e 'click menu item "Run"' -e 'end tell' -e 'end tell' -e 'end tell' -e 'end tell' -e 'end tell' -e 'return true' -e 'on error error_message' -e 'return false' -e 'end try'</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>@r</string>
+ <key>name</key>
+ <string>Run in Processing</string>
+ <key>output</key>
+ <string>discard</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>uuid</key>
+ <string>740EC8D5-6590-4635-B76A-A032681898C8</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>void draw() {
+ $1
+}</string>
+ <key>name</key>
+ <string>draw (se)</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>tabTrigger</key>
+ <string>se</string>
+ <key>uuid</key>
+ <string>78A35FDC-F40B-48AC-93D2-97D303A51FF4</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>float $1 = $2;</string>
+ <key>name</key>
+ <string>float (float)</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>tabTrigger</key>
+ <string>float</string>
+ <key>uuid</key>
+ <string>8CA89D0B-7B33-45C1-971C-F197D3C6A693</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>float[] $1 = new float[$2];</string>
+ <key>name</key>
+ <string>float[] (float[])</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>tabTrigger</key>
+ <string>float[]</string>
+ <key>uuid</key>
+ <string>9B78606A-BEAB-4234-8DD1-E52C25FC2836</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>int $1 = $2;</string>
+ <key>name</key>
+ <string>int (int)</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>tabTrigger</key>
+ <string>int</string>
+ <key>uuid</key>
+ <string>5EBF77EA-9E6C-43CB-9B22-159C70735DA6</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>int[] $1 = new int[$2];</string>
+ <key>name</key>
+ <string>int[] (int[])</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>tabTrigger</key>
+ <string>int[]</string>
+ <key>uuid</key>
+ <string>1D075382-1F2C-47B0-8A48-1906480D6239</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>import processing.opengl.*;</string>
+ <key>name</key>
+ <string>opengl (gl)</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>tabTrigger</key>
+ <string>gl</string>
+ <key>uuid</key>
+ <string>49F7D289-0893-4F93-9AFF-39A5CF3E1CE6</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>void setup() {
+ $1
+}</string>
+ <key>name</key>
+ <string>setup (se)</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>tabTrigger</key>
+ <string>se</string>
+ <key>uuid</key>
+ <string>1D2C24EC-3F88-4FA7-B419-8356046F19FA</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>size($1, $2, ${3:P3D});</string>
+ <key>name</key>
+ <string>size (size)</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>tabTrigger</key>
+ <string>size</string>
+ <key>uuid</key>
+ <string>B66B064F-4B0C-4674-86E8-F8ABF29272D3</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>string $1 = $2;</string>
+ <key>name</key>
+ <string>string (str)</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>tabTrigger</key>
+ <string>str</string>
+ <key>uuid</key>
+ <string>4410834F-F43B-4BE9-BC3C-B05CB8E13382</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>string[] $1 = new string[$2];</string>
+ <key>name</key>
+ <string>string[] (string[])</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>tabTrigger</key>
+ <string>string[]</string>
+ <key>uuid</key>
+ <string>2D3DBFE5-4075-4189-B00C-2BF4090802B1</string>
+</dict>
+</plist>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>void $1($2 $3) {
+ $4
+}</string>
+ <key>name</key>
+ <string>void method (void)</string>
+ <key>scope</key>
+ <string>source.processing</string>
+ <key>tabTrigger</key>
+ <string>void</string>
+ <key>uuid</key>
+ <string>5974F040-26BB-41DC-B943-8A9560074B04</string>
+</dict>
+</plist>
Oops, something went wrong.

0 comments on commit b7918b5

Please sign in to comment.