factor/basis/editors/editplus/editplus.factor

18 lines
492 B
Factor
Raw Normal View History

2007-12-09 11:48:01 -05:00
USING: editors io.files io.launcher kernel math.parser
2008-12-15 22:45:18 -05:00
namespaces sequences windows.shell32 make
io.directories.search.windows ;
IN: editors.editplus
2007-12-09 11:48:01 -05:00
: editplus-path ( -- path )
\ editplus-path get-global [
"EditPlus 2" t [ "editplus.exe" tail? ] find-in-program-files
[ "editplus.exe" ] unless*
2007-12-09 11:48:01 -05:00
] unless* ;
: editplus ( file line -- )
[
2008-01-24 02:50:40 -05:00
editplus-path , "-cursor" , number>string , ,
] { } make run-detached drop ;
[ editplus ] edit-hook set-global