editors.cot: adding CotEditor support.

db4
John Benediktsson 2014-11-30 19:20:03 -08:00
parent a1f91ba482
commit 2e00389e7d
4 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1 @@
John Benediktsson

View File

@ -0,0 +1,16 @@
USING: editors io.pathnames io.standard-paths kernel make
math.parser ;
IN: editors.cot
SINGLETON: cot
cot editor-class set-global
: find-cot-bundle-path ( -- path/f )
"com.coteditor.CotEditor" find-native-bundle [
"Contents/MacOS/cot" append-path
] [
f
] if* ;
M: cot editor-command ( file line -- command )
[ find-cot-bundle-path , "-l" , # , ] { } make ;

View File

@ -0,0 +1 @@
CotEditor integration

View File

@ -0,0 +1 @@
not loaded