math.parser namespaces sequences system ;
IN: editors.atom
-SINGLETON: atom-editor
-atom-editor editor-class set-global
+SINGLETON: atom
+atom editor-class set-global
SYMBOL: atom-path
f
] if* ;
-M: atom-editor editor-command
+M: atom editor-command
[
atom-path get [ find-atom ] unless* ,
number>string ":" glue ,
namespaces system vocabs ;
IN: editors.brackets
-SINGLETON: brackets-editor
-brackets-editor editor-class set-global
+SINGLETON: brackets
+brackets editor-class set-global
HOOK: brackets-path os ( -- path )
f
] if* ;
-M: brackets-editor editor-command
+M: brackets editor-command
[ brackets-path "brackets" or , drop , ] { } make ;
os windows? [ "editors.brackets.windows" require ] when
kernel make math.parser namespaces sequences system ;
IN: editors.emacs
-SINGLETON: emacsclient
-emacsclient editor-class set-global
+SINGLETON: emacs
+emacs editor-class set-global
SYMBOL: emacsclient-path
SYMBOL: emacsclient-args
[ "emacsclient.exe" ]
} 0|| ;
-M: emacsclient editor-command
+M: emacs editor-command
[
emacsclient-path get [ find-emacsclient ] unless* ,
emacsclient-args get [ { "-a=emacs" "--no-wait" } ] unless* %
! Command line arguments
! https://code.visualstudio.com/docs/editor/command-line
-TUPLE: visual-studio-code ;
+TUPLE: visual-studio-code ;
T{ visual-studio-code } editor-class set-global
HOOK: find-visual-studio-code-path editor-class ( -- path )