]> gitweb.factorcode.org Git - factor.git/commitdiff
editors.textadept: Add support for Windows.
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 9 Apr 2013 19:17:21 +0000 (12:17 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 9 Apr 2013 19:19:06 +0000 (12:19 -0700)
basis/editors/textadept/textadept.factor
basis/editors/textadept/windows/platforms.txt [new file with mode: 0644]
basis/editors/textadept/windows/windows.factor [new file with mode: 0644]

index 3bf8b232616db1f7837d7e68a42a26f94dee0980..d3c37ca3131b26ee7474092e6806c13c64aa7345 100644 (file)
@@ -9,9 +9,8 @@
 !
 ! For more information about Textadept, consult http://foicica.com/textadept/
 
-USING: editors io.launcher io.pathnames io.standard-paths kernel
-make math math.parser namespaces sequences system ;
-
+USING: editors io.launcher io.pathnames io.standard-paths
+kernel make math math.parser namespaces sequences system vocabs ;
 IN: editors.textadept
 
 SINGLETON: textadept
@@ -28,10 +27,6 @@ M: macosx find-textadept-path
         f
     ] if* ;
 
-! M: windows find-textadept-path
-!     let-Windows-users-fill-this-in
-!     ;
-
 : textadept-path  ( -- path )
     \ textadept-path get-global [
         find-textadept-path "textadept" or
@@ -42,3 +37,5 @@ M: textadept editor-command ( file line -- command )
         textadept-path , "-f" , , "-e" ,
         1 - number>string "goto_line(" ")" surround ,
     ] { } make ;
+
+os windows? [ "editors.textadept.windows" require ] when
diff --git a/basis/editors/textadept/windows/platforms.txt b/basis/editors/textadept/windows/platforms.txt
new file mode 100644 (file)
index 0000000..8e1a559
--- /dev/null
@@ -0,0 +1 @@
+windows
diff --git a/basis/editors/textadept/windows/windows.factor b/basis/editors/textadept/windows/windows.factor
new file mode 100644 (file)
index 0000000..7dec4d8
--- /dev/null
@@ -0,0 +1,9 @@
+! Copyright (C) 2013 Doug Coleman.
+! See http://factorcode.org/license.txt for BSD license.
+USING: editors.textadept io.directories.search.windows
+sequences system ;
+IN: editors.textadept.windows
+
+M: windows find-textadept-path
+    "textadept_6.5.win32"
+    [ "textadept.exe" tail? ] find-in-program-files ;