editors.textadept: make it work on Mac OS X.

db4
John Benediktsson 2013-03-31 18:47:38 -07:00
parent 7d4bf03bab
commit d6ff13b1cf
1 changed files with 9 additions and 4 deletions

View File

@ -17,8 +17,8 @@
!
! For more information about Textadept, consult http://foicica.com/textadept/
USING: editors io.launcher 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 ;
IN: editors.textadept
@ -29,8 +29,13 @@ HOOK: find-textadept-path os ( -- path )
M: object find-textadept-path "textadept" ;
! Example of OS-specific method
! -----------------------------
M: macosx find-textadept-path
"com.textadept" find-native-bundle [
"Contents/MacOS/textadept" append-path
] [
f
] if* ;
! M: windows find-textadept-path
! let-Windows-users-fill-this-in
! ;