factor/basis/editors/ultraedit/ultraedit.factor

18 lines
472 B
Factor
Raw Normal View History

2015-06-01 17:39:30 -04:00
USING: editors io.standard-paths kernel make math.parser
namespaces ;
2007-12-04 00:01:34 -05:00
IN: editors.ultraedit
SINGLETON: ultraedit
ultraedit editor-class set-global
2007-12-09 11:57:03 -05:00
: ultraedit-path ( -- path )
\ ultraedit-path get-global [
2015-06-01 17:39:30 -04:00
{ "IDM Computer Solutions" } "uedit32.exe" find-in-applications
[ "uedit32.exe" ] unless*
2007-12-09 11:57:03 -05:00
] unless* ;
M: ultraedit editor-command ( file line -- command )
2007-12-04 00:01:34 -05:00
[
2008-01-29 12:41:12 -05:00
ultraedit-path , [ swap % "/" % # "/1" % ] "" make ,
] { } make ;