]> gitweb.factorcode.org Git - factor.git/blob - basis/editors/ted-notepad/ted-notepad.factor
b4135c92a0f97465c15a7b0909b8f9a334df8335
[factor.git] / basis / editors / ted-notepad / ted-notepad.factor
1 USING: editors io.files io.launcher kernel math.parser
2 namespaces sequences windows.shell32 make ;
3 IN: editors.ted-notepad
4
5 : ted-notepad-path
6     \ ted-notepad-path get-global [
7         program-files "\\TED Notepad\\TedNPad.exe" append-path
8     ] unless* ;
9
10 : ted-notepad ( file line -- )
11     [
12         ted-notepad-path , "/l" swap number>string append , ,
13     ] { } make run-detached drop ;
14
15 [ ted-notepad ] edit-hook set-global