2011-10-31 14:53:07 -04:00
|
|
|
USING: combinators.short-circuit editors io.standard-paths
|
|
|
|
kernel make math.parser namespaces sequences ;
|
2007-09-20 18:09:08 -04:00
|
|
|
IN: editors.editpadpro
|
|
|
|
|
2011-10-31 14:53:07 -04:00
|
|
|
SINGLETON: editpadpro
|
|
|
|
editpadpro editor-class set-global
|
|
|
|
|
2008-12-08 21:11:24 -05:00
|
|
|
: editpadpro-path ( -- path )
|
2015-06-01 17:39:30 -04:00
|
|
|
\ editpadpro-path get [
|
2011-10-31 14:53:07 -04:00
|
|
|
{
|
|
|
|
[ { "Just Great Software" "JGsoft" } "editpadpro.exe" find-in-applications ]
|
|
|
|
[ { "Just Great Software" "JGsoft" } "editpadpro7.exe" find-in-applications ]
|
|
|
|
[ "editpadpro7.exe" ]
|
|
|
|
} 0||
|
2007-12-09 11:48:47 -05:00
|
|
|
] unless* ;
|
|
|
|
|
2011-10-31 14:53:07 -04:00
|
|
|
M: editpadpro editor-command ( file line -- command )
|
2008-01-24 02:50:40 -05:00
|
|
|
[
|
2008-12-08 21:11:24 -05:00
|
|
|
editpadpro-path , number>string "/l" prepend , ,
|
2011-10-31 14:53:07 -04:00
|
|
|
] { } make ;
|