From ef70996128c22396d98285fd4bef41b9cb71a0c4 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Sun, 9 Dec 2007 10:48:47 -0600 Subject: [PATCH] EditPadPro automatically configures path --- extra/editors/editpadpro/editpadpro.factor | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/extra/editors/editpadpro/editpadpro.factor b/extra/editors/editpadpro/editpadpro.factor index b79ac6a594..6882a00e45 100644 --- a/extra/editors/editpadpro/editpadpro.factor +++ b/extra/editors/editpadpro/editpadpro.factor @@ -1,8 +1,15 @@ USING: definitions kernel parser words sequences math.parser -namespaces editors io.launcher ; +namespaces editors io.launcher windows.shell32 io.files +strings ; IN: editors.editpadpro +: editpadpro-path + \ editpadpro-path get-global [ + program-files "JGsoft" path+ walk-dir + [ >lower "editpadpro.exe" tail? ] find nip + ] unless* ; + : editpadpro ( file line -- ) - [ "editpadpro.exe /l" % # " \"" % % "\"" % ] "" make run-process ; + [ editpadpro-path % " /l" % # " \"" % % "\"" % ] "" make run-detached ; [ editpadpro ] edit-hook set-global