18 lines
442 B
Factor
18 lines
442 B
Factor
USING: editors io.standard-paths kernel make math.parser
|
|
namespaces ;
|
|
IN: editors.editplus
|
|
|
|
SINGLETON: editplus
|
|
editplus editor-class set-global
|
|
|
|
: editplus-path ( -- path )
|
|
\ editplus-path get [
|
|
{ "EditPlus 2" } "editplus.exe" find-in-applications
|
|
[ "editplus.exe" ] unless*
|
|
] unless* ;
|
|
|
|
M: editplus editor-command ( file line -- command )
|
|
[
|
|
editplus-path , "-cursor" , number>string , ,
|
|
] { } make ;
|