1 ! Copyright (C) 2009 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: arrays editors io.directories io.files io.pathnames
4 kernel namespaces sequences windows.shell32 ;
10 editor-class [ notepad ] initialize
12 : notepad-path ( -- path )
14 windows-directory "notepad.exe" append-path
15 dup file-exists? [ drop f ] unless
18 [ "notepad.exe" tail? ] find-file
21 M: notepad editor-command
22 drop [ notepad-path ] dip 2array ;