]> gitweb.factorcode.org Git - factor.git/blob - basis/editors/editpadlite/editpadlite.factor
Merge branch 'master' into experimental (untested!)
[factor.git] / basis / editors / editpadlite / editpadlite.factor
1 USING: definitions kernel parser words sequences math.parser
2 namespaces editors io.launcher windows.shell32 io.files
3 io.paths.windows strings unicode.case make ;
4 IN: editors.editpadlite
5
6 : editpadlite-path ( -- path )
7     \ editpadlite-path get-global [
8         "JGsoft" t [ >lower "editpadlite.exe" tail? ] find-in-program-files
9     ] unless* ;
10
11 : editpadlite ( file line -- )
12     [
13         editpadlite-path , drop ,
14     ] { } make run-detached drop ;
15
16 [ editpadlite ] edit-hook set-global