2008-09-11 21:15:59 -04:00
|
|
|
USING: definitions io.launcher kernel math math.parser parser
|
|
|
|
namespaces prettyprint editors make ;
|
|
|
|
IN: editors.textedit
|
|
|
|
|
2009-05-15 17:12:13 -04:00
|
|
|
: textedit ( file line -- )
|
2008-09-11 21:15:59 -04:00
|
|
|
drop
|
|
|
|
[ "open" , "-a" , "TextEdit", , ] { } make
|
2009-05-15 17:12:13 -04:00
|
|
|
run-detached drop ;
|
2008-09-11 21:15:59 -04:00
|
|
|
|
2009-05-15 17:12:13 -04:00
|
|
|
[ textedit ] edit-hook set-global
|