1 ! Copyright (C) 2015 Dimage Sapelkin.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: editors io.pathnames io.standard-paths kernel make
4 namespaces system vocabs ;
7 SINGLETON: brackets-editor
8 brackets-editor editor-class set-global
10 HOOK: brackets-path os ( -- path )
12 M: macosx brackets-path
13 "io.brackets.appshell" find-native-bundle [
14 "Contents/MacOS/Brackets" append-path
19 M: brackets-editor editor-command ( file line -- command )
20 [ brackets-path "brackets" or , drop , ] { } make ;
22 os windows? [ "editors.brackets.windows" require ] when