factor/extra/editors/ultraedit/ultraedit.factor

18 lines
441 B
Factor
Raw Normal View History

2007-12-09 11:57:03 -05:00
USING: editors io.files io.launcher kernel math.parser
namespaces sequences windows.shell32 ;
2007-12-04 00:01:34 -05:00
IN: editors.ultraedit
2007-12-09 11:57:03 -05:00
: ultraedit-path ( -- path )
\ ultraedit-path get-global [
program-files
"\\IDM Computer Solutions\\UltraEdit-32\\uedit32.exe" path+
] unless* ;
2007-12-04 00:01:34 -05:00
: ultraedit ( file line -- )
[
2007-12-09 11:57:03 -05:00
ultraedit-path % " " % swap % "/" % # "/1" %
2007-12-04 00:01:34 -05:00
] "" make run-detached ;
[ ultraedit ] edit-hook set-global