factor/basis/editors/ultraedit/ultraedit.factor

18 lines
463 B
Factor
Executable File

USING: editors io.files io.launcher kernel math.parser
namespaces sequences windows.shell32 wne ;
IN: editors.ultraedit
: ultraedit-path ( -- path )
\ ultraedit-path get-global [
program-files
"IDM Computer Solutions\\UltraEdit-32\\uedit32.exe" append-path
] unless* ;
: ultraedit ( file line -- )
[
ultraedit-path , [ swap % "/" % # "/1" % ] "" make ,
] { } make run-detached drop ;
[ ultraedit ] edit-hook set-global