2015-06-01 17:39:30 -04:00
|
|
|
USING: editors io.standard-paths kernel make math.parser
|
|
|
|
namespaces ;
|
2007-12-04 01:05:41 -05:00
|
|
|
IN: editors.editplus
|
|
|
|
|
2011-10-31 14:53:07 -04:00
|
|
|
SINGLETON: editplus
|
|
|
|
editplus editor-class set-global
|
|
|
|
|
2007-12-09 11:48:01 -05:00
|
|
|
: editplus-path ( -- path )
|
2015-06-01 17:39:30 -04:00
|
|
|
\ editplus-path get [
|
|
|
|
{ "EditPlus 2" } "editplus.exe" find-in-applications
|
2009-01-16 15:13:17 -05:00
|
|
|
[ "editplus.exe" ] unless*
|
2007-12-09 11:48:01 -05:00
|
|
|
] unless* ;
|
|
|
|
|
2011-10-31 14:53:07 -04:00
|
|
|
M: editplus editor-command ( file line -- command )
|
2007-12-04 01:05:41 -05:00
|
|
|
[
|
2008-01-24 02:50:40 -05:00
|
|
|
editplus-path , "-cursor" , number>string , ,
|
2011-10-31 14:53:07 -04:00
|
|
|
] { } make ;
|