factor/basis/editors/notepadpp/notepadpp.factor

19 lines
516 B
Factor
Raw Normal View History

2007-12-09 12:51:25 -05:00
USING: editors io.files io.launcher kernel math.parser
2008-12-15 22:45:18 -05:00
namespaces sequences io.directories.search.windows make ;
2007-11-24 23:44:47 -05:00
IN: editors.notepadpp
2007-11-24 21:48:29 -05:00
SINGLETON: notepadpp
notepadpp editor-class set-global
: notepadpp-path ( -- path )
2007-12-09 12:51:25 -05:00
\ notepadpp-path get-global [
"notepad++" [ "notepad++.exe" tail? ] find-in-program-files
[ "notepad++.exe" ] unless*
2007-12-09 12:51:25 -05:00
] unless* ;
M: notepadpp editor-command ( file line -- command )
2007-11-24 21:48:29 -05:00
[
2008-01-24 02:50:40 -05:00
notepadpp-path ,
number>string "-n" prepend , ,
] { } make ;