factor/extra/editors/editpadpro/editpadpro.factor

18 lines
509 B
Factor
Raw Normal View History

2007-09-20 18:09:08 -04:00
USING: definitions kernel parser words sequences math.parser
namespaces editors io.launcher windows.shell32 io.files
io.paths strings unicode.case ;
2007-09-20 18:09:08 -04:00
IN: editors.editpadpro
: editpadpro-path
\ editpadpro-path get-global [
program-files "JGsoft" append-path
t [ >lower "editpadpro.exe" tail? ] find-file
] unless* ;
2007-09-20 18:09:08 -04:00
: editpadpro ( file line -- )
2008-01-24 02:50:40 -05:00
[
editpadpro-path , "/l" swap number>string append , ,
] { } make run-detached drop ;
2007-09-20 18:09:08 -04:00
[ editpadpro ] edit-hook set-global