factor/basis/editors/ultraedit/ultraedit.factor

18 lines
522 B
Factor
Raw Normal View History

2007-12-09 11:57:03 -05:00
USING: editors io.files io.launcher kernel math.parser
2008-12-15 22:45:18 -05:00
namespaces sequences io.directories.search.windows make ;
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 [
"IDM Computer Solutions" [ "uedit32.exe" tail? ] find-in-program-files
[ "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 ;