]> gitweb.factorcode.org Git - factor.git/commitdiff
editors.xcode: adding "open in XCode" support.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 9 Apr 2013 23:49:24 +0000 (16:49 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 9 Apr 2013 23:49:52 +0000 (16:49 -0700)
basis/editors/xcode/authors.txt [new file with mode: 0644]
basis/editors/xcode/summary.txt [new file with mode: 0644]
basis/editors/xcode/xcode.factor [new file with mode: 0644]

diff --git a/basis/editors/xcode/authors.txt b/basis/editors/xcode/authors.txt
new file mode 100644 (file)
index 0000000..e091bb8
--- /dev/null
@@ -0,0 +1 @@
+John Benediktsson
diff --git a/basis/editors/xcode/summary.txt b/basis/editors/xcode/summary.txt
new file mode 100644 (file)
index 0000000..c46617d
--- /dev/null
@@ -0,0 +1 @@
+Xcode editor integration
diff --git a/basis/editors/xcode/xcode.factor b/basis/editors/xcode/xcode.factor
new file mode 100644 (file)
index 0000000..0978c94
--- /dev/null
@@ -0,0 +1,10 @@
+USING: definitions io.launcher kernel math math.parser parser
+namespaces prettyprint editors make ;
+IN: editors.xcode
+
+SINGLETON: xcode
+xcode editor-class set-global
+
+M: xcode editor-command ( file line -- command )
+    drop
+    [ "open" , "-a" , "XCode" , , ] { } make ;