factor/basis/editors/coteditor/coteditor.factor

17 lines
442 B
Factor
Raw Normal View History

2014-11-30 22:20:03 -05:00
USING: editors io.pathnames io.standard-paths kernel make
math.parser namespaces ;
IN: editors.coteditor
2014-11-30 22:20:03 -05:00
SINGLETON: coteditor
coteditor editor-class set-global
2014-11-30 22:20:03 -05:00
: find-cot-bundle-path ( -- path/f )
"com.coteditor.CotEditor" find-native-bundle [
"Contents/MacOS/cot" append-path
] [
f
] if* ;
M: coteditor editor-command ( file line -- command )
2014-11-30 22:23:22 -05:00
[ find-cot-bundle-path , "-l" , number>string , , ] { } make ;