From 4085ee278d955d7fb63813d41cb024e92b8a3ce6 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Sun, 9 Dec 2007 10:48:01 -0600 Subject: [PATCH] EditPlus automatically detects path --- extra/editors/editplus/editplus.factor | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) mode change 100644 => 100755 extra/editors/editplus/editplus.factor diff --git a/extra/editors/editplus/editplus.factor b/extra/editors/editplus/editplus.factor old mode 100644 new mode 100755 index e47ca257ca..bff523b50d --- a/extra/editors/editplus/editplus.factor +++ b/extra/editors/editplus/editplus.factor @@ -1,12 +1,15 @@ -USING: editors io.launcher math.parser namespaces ; +USING: editors io.files io.launcher kernel math.parser +namespaces sequences windows.shell32 ; IN: editors.editplus +: editplus-path ( -- path ) + \ editplus-path get-global [ + program-files "\\EditPlus 2\\editplus.exe" append + ] unless* ; + : editplus ( file line -- ) [ - \ editplus get-global % " -cursor " % # " " % % + editplus-path % " -cursor " % # " " % % ] "" make run-detached ; -! Put in your .factor-boot-rc -! "c:\\Program Files\\EditPlus\\editplus.exe" \ editplus set-global - [ editplus ] edit-hook set-global