1 USING: editors io.pathnames io.standard-paths kernel make
2 math.parser namespaces sequences system ;
8 editor-class [ kate ] initialize
10 HOOK: find-kate-path os ( -- path )
12 M: object find-kate-path f ;
14 M: windows find-kate-path
15 { "Kate" } "kate.exe" find-in-applications
16 [ "kate.exe" ] unless* ;
18 M: macosx find-kate-path
19 "org.kde.Kate" find-native-bundle [
20 "Contents/MacOS/kate" append-path
25 : kate-path ( -- path )
27 find-kate-path [ "kate" ?find-in-path ] unless*
30 M: kate editor-command
31 [ kate-path , drop , ] { } make ;