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