factor/basis/editors/gedit/gedit.factor

19 lines
469 B
Factor
Raw Normal View History

2009-04-18 02:43:40 -04:00
! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
2015-06-01 17:39:30 -04:00
USING: editors io.launcher io.standard-paths kernel make
math.parser namespaces sequences ;
2009-04-18 02:43:40 -04:00
IN: editors.gedit
SINGLETON: gedit
gedit editor-class set-global
2009-04-18 02:43:40 -04:00
: gedit-path ( -- path )
2015-06-01 17:39:30 -04:00
\ gedit-path get [
"gedit" ?find-in-path
2009-04-18 02:43:40 -04:00
] unless* ;
M: gedit editor-command ( file line -- command )
2009-04-18 02:43:40 -04:00
[
gedit-path , number>string "+" prepend , ,
] { } make ;