editors.textadept: make it work on Mac OS X.
parent
7d4bf03bab
commit
d6ff13b1cf
|
@ -17,8 +17,8 @@
|
||||||
!
|
!
|
||||||
! For more information about Textadept, consult http://foicica.com/textadept/
|
! For more information about Textadept, consult http://foicica.com/textadept/
|
||||||
|
|
||||||
USING: editors io.launcher kernel make math math.parser
|
USING: editors io.launcher io.pathnames io.standard-paths kernel
|
||||||
namespaces sequences system ;
|
make math math.parser namespaces sequences system ;
|
||||||
|
|
||||||
IN: editors.textadept
|
IN: editors.textadept
|
||||||
|
|
||||||
|
@ -29,8 +29,13 @@ HOOK: find-textadept-path os ( -- path )
|
||||||
|
|
||||||
M: object find-textadept-path "textadept" ;
|
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
|
! M: windows find-textadept-path
|
||||||
! let-Windows-users-fill-this-in
|
! let-Windows-users-fill-this-in
|
||||||
! ;
|
! ;
|
||||||
|
|
Loading…
Reference in New Issue