2015-06-01 17:39:30 -04:00
|
|
|
USING: editors io.standard-paths kernel make math.parser
|
|
|
|
namespaces sequences ;
|
2008-12-15 22:45:18 -05:00
|
|
|
IN: editors.textpad
|
|
|
|
|
2011-10-31 14:53:07 -04:00
|
|
|
SINGLETON: textpad
|
|
|
|
textpad editor-class set-global
|
|
|
|
|
2008-12-15 22:45:18 -05:00
|
|
|
: textpad-path ( -- path )
|
|
|
|
\ textpad-path get-global [
|
2015-06-01 17:39:30 -04:00
|
|
|
{ "TextPad 5" } "textpad.exe" find-in-applications
|
2009-01-16 15:13:17 -05:00
|
|
|
[ "TextPad.exe" ] unless*
|
2008-12-15 22:45:18 -05:00
|
|
|
] unless* ;
|
|
|
|
|
2011-10-31 14:53:07 -04:00
|
|
|
M: textpad editor-command ( file line -- command )
|
2008-12-15 22:45:18 -05:00
|
|
|
[
|
2015-06-01 17:39:30 -04:00
|
|
|
textpad-path ,
|
|
|
|
[ , ] [ number>string "(" ",0)" surround , ] bi*
|
2011-10-31 14:53:07 -04:00
|
|
|
] { } make ;
|