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

diff --git a/basis/editors/bbedit/authors.txt b/basis/editors/bbedit/authors.txt
new file mode 100644 (file)
index 0000000..e091bb8
--- /dev/null
@@ -0,0 +1 @@
+John Benediktsson
diff --git a/basis/editors/bbedit/bbedit.factor b/basis/editors/bbedit/bbedit.factor
new file mode 100644 (file)
index 0000000..26e5130
--- /dev/null
@@ -0,0 +1,9 @@
+USING: editors kernel make namespaces ;
+IN: editors.bbedit
+
+SINGLETON: bbedit
+bbedit editor-class set-global
+
+M: bbedit editor-command ( file line -- command )
+    drop
+    [ "open" , "-a" , "BBEdit" , , ] { } make ;
diff --git a/basis/editors/bbedit/summary.txt b/basis/editors/bbedit/summary.txt
new file mode 100644 (file)
index 0000000..c9d8be6
--- /dev/null
@@ -0,0 +1 @@
+BBEdit editor integration