diff --git a/basis/editors/editpadlite/editpadlite.factor b/basis/editors/editpadlite/editpadlite.factor index c002c2fa75..0ffb4f7d95 100644 --- a/basis/editors/editpadlite/editpadlite.factor +++ b/basis/editors/editpadlite/editpadlite.factor @@ -1,6 +1,6 @@ USING: definitions kernel parser words sequences math.parser namespaces editors io.launcher windows.shell32 io.files -io.paths.windows strings unicode.case make ; +io.directories.search.windows strings unicode.case make ; IN: editors.editpadlite : editpadlite-path ( -- path ) diff --git a/basis/editors/editpadpro/editpadpro.factor b/basis/editors/editpadpro/editpadpro.factor index 2a7f92f932..6c540b0e21 100644 --- a/basis/editors/editpadpro/editpadpro.factor +++ b/basis/editors/editpadpro/editpadpro.factor @@ -1,6 +1,6 @@ USING: definitions kernel parser words sequences math.parser namespaces editors io.launcher windows.shell32 io.files -io.paths.windows strings unicode.case make ; +io.directories.search.windows strings unicode.case make ; IN: editors.editpadpro : editpadpro-path ( -- path ) diff --git a/basis/editors/editplus/editplus.factor b/basis/editors/editplus/editplus.factor index 9fa477f51a..cfcc42dced 100644 --- a/basis/editors/editplus/editplus.factor +++ b/basis/editors/editplus/editplus.factor @@ -1,5 +1,6 @@ USING: editors io.files io.launcher kernel math.parser -namespaces sequences windows.shell32 make io.paths.windows ; +namespaces sequences windows.shell32 make +io.directories.search.windows ; IN: editors.editplus : editplus-path ( -- path ) diff --git a/basis/editors/emeditor/emeditor.factor b/basis/editors/emeditor/emeditor.factor index fc3deae670..f946095578 100644 --- a/basis/editors/emeditor/emeditor.factor +++ b/basis/editors/emeditor/emeditor.factor @@ -1,5 +1,6 @@ USING: editors io.files io.launcher kernel math.parser -namespaces sequences windows.shell32 make io.paths.windows ; +namespaces sequences windows.shell32 make +io.directories.search.windows ; IN: editors.emeditor : emeditor-path ( -- path ) diff --git a/basis/editors/etexteditor/etexteditor.factor b/basis/editors/etexteditor/etexteditor.factor index c4b3ad35c1..375559c20a 100755 --- a/basis/editors/etexteditor/etexteditor.factor +++ b/basis/editors/etexteditor/etexteditor.factor @@ -1,7 +1,7 @@ ! Copyright (C) 2008 Kibleur Christophe. ! See http://factorcode.org/license.txt for BSD license. -USING: editors io.files io.launcher kernel math.parser -namespaces sequences windows.shell32 io.paths.windows make ; +USING: editors io.files io.launcher kernel math.parser make +namespaces sequences windows.shell32 io.directories.search.windows ; IN: editors.etexteditor : etexteditor-path ( -- str ) diff --git a/basis/editors/gvim/windows/windows.factor b/basis/editors/gvim/windows/windows.factor index 1a6f8e902c..b574e7f824 100644 --- a/basis/editors/gvim/windows/windows.factor +++ b/basis/editors/gvim/windows/windows.factor @@ -1,5 +1,6 @@ USING: editors.gvim io.files kernel namespaces sequences -windows.shell32 io.paths.windows system ; +windows.shell32 io.directories.search.windows system +io.pathnames ; IN: editors.gvim.windows M: windows gvim-path diff --git a/basis/editors/notepad2/notepad2.factor b/basis/editors/notepad2/notepad2.factor index e22de4f68d..c21d5283dd 100644 --- a/basis/editors/notepad2/notepad2.factor +++ b/basis/editors/notepad2/notepad2.factor @@ -1,10 +1,10 @@ USING: editors io.files io.launcher kernel math.parser -namespaces sequences windows.shell32 make ; +namespaces sequences windows.shell32 make io.pathnames ; IN: editors.notepad2 : notepad2-path ( -- path ) \ notepad2-path get-global [ - "C:\\Windows\\system32\\notepad.exe" + windows-directory "system32\\notepad.exe" append-path ] unless* ; : notepad2 ( file line -- ) diff --git a/basis/editors/notepadpp/notepadpp.factor b/basis/editors/notepadpp/notepadpp.factor index d68008c2ca..5acaef10a7 100644 --- a/basis/editors/notepadpp/notepadpp.factor +++ b/basis/editors/notepadpp/notepadpp.factor @@ -1,5 +1,5 @@ USING: editors io.files io.launcher kernel math.parser -namespaces sequences io.paths.windows make ; +namespaces sequences io.directories.search.windows make ; IN: editors.notepadpp : notepadpp-path ( -- path ) diff --git a/basis/editors/scite/scite.factor b/basis/editors/scite/scite.factor index e0b48a3e72..3bfd764b06 100644 --- a/basis/editors/scite/scite.factor +++ b/basis/editors/scite/scite.factor @@ -1,7 +1,7 @@ ! Copyright (C) 2007 Clemens F. Hofreither. ! See http://factorcode.org/license.txt for BSD license. ! clemens.hofreither@gmx.net -USING: io.files io.launcher kernel namespaces io.paths.windows +USING: io.files io.launcher kernel namespaces io.directories.search.windows math math.parser editors sequences make unicode.case ; IN: editors.scite diff --git a/basis/editors/ted-notepad/ted-notepad.factor b/basis/editors/ted-notepad/ted-notepad.factor index 994dc60ba3..41f5ff5fa5 100644 --- a/basis/editors/ted-notepad/ted-notepad.factor +++ b/basis/editors/ted-notepad/ted-notepad.factor @@ -1,5 +1,5 @@ USING: editors io.files io.launcher kernel math.parser -namespaces sequences io.paths.windows make ; +namespaces sequences io.directories.search.windows make ; IN: editors.ted-notepad : ted-notepad-path ( -- path ) diff --git a/basis/editors/textpad/authors.txt b/basis/editors/textpad/authors.txt new file mode 100644 index 0000000000..7c1b2f2279 --- /dev/null +++ b/basis/editors/textpad/authors.txt @@ -0,0 +1 @@ +Doug Coleman diff --git a/basis/editors/textpad/summary.txt b/basis/editors/textpad/summary.txt new file mode 100644 index 0000000000..c8820501ae --- /dev/null +++ b/basis/editors/textpad/summary.txt @@ -0,0 +1 @@ +TextPad editor integration diff --git a/basis/editors/textpad/textpad.factor b/basis/editors/textpad/textpad.factor new file mode 100644 index 0000000000..4963eab66f --- /dev/null +++ b/basis/editors/textpad/textpad.factor @@ -0,0 +1,16 @@ +USING: editors io.files io.launcher kernel math.parser +namespaces sequences make io.directories.search +io.directories.search.windows ; +IN: editors.textpad + +: textpad-path ( -- path ) + \ textpad-path get-global [ + "TextPad 5" t [ "TextPad.exe" tail? ] find-in-program-files + ] unless* ; + +: textpad ( file line -- ) + [ + textpad-path , [ , ] [ number>string "(" ",0)" surround , ] bi* + ] { } make run-detached drop ; + +[ textpad ] edit-hook set-global diff --git a/basis/editors/ultraedit/ultraedit.factor b/basis/editors/ultraedit/ultraedit.factor index f1929ebf64..088d3cabbf 100644 --- a/basis/editors/ultraedit/ultraedit.factor +++ b/basis/editors/ultraedit/ultraedit.factor @@ -1,5 +1,5 @@ USING: editors io.files io.launcher kernel math.parser -namespaces sequences io.paths.windows make ; +namespaces sequences io.directories.search.windows make ; IN: editors.ultraedit : ultraedit-path ( -- path ) diff --git a/basis/editors/wordpad/wordpad.factor b/basis/editors/wordpad/wordpad.factor index fa0f6852dd..ef670d5d28 100644 --- a/basis/editors/wordpad/wordpad.factor +++ b/basis/editors/wordpad/wordpad.factor @@ -1,4 +1,4 @@ -USING: editors io.launcher kernel io.paths.windows +USING: editors io.launcher kernel io.directories.search.windows math.parser namespaces sequences io.files arrays ; IN: editors.wordpad