factor/basis/editors/scite/scite.factor

26 lines
630 B
Factor
Raw Normal View History

! Copyright (C) 2007 Clemens F. Hofreither.
! See http://factorcode.org/license.txt for BSD license.
2007-09-20 18:09:08 -04:00
! clemens.hofreither@gmx.net
2013-04-09 19:15:07 -04:00
USING: io.files io.launcher kernel namespaces
math math.parser editors sequences make system unicode.case
vocabs ;
2007-09-20 18:09:08 -04:00
IN: editors.scite
SINGLETON: scite
scite editor-class set-global
2013-04-09 19:15:07 -04:00
HOOK: scite-path os ( -- path )
2013-04-09 19:15:07 -04:00
M: unix scite-path ( -- path )
\ scite-path get-global [ "scite" ] unless* ;
2007-09-20 18:09:08 -04:00
M: scite editor-command ( file line -- cmd )
swap
[
scite-path ,
,
number>string "-goto:" prepend ,
] { } make ;
2013-04-09 19:15:07 -04:00
os windows? [ "editors.scite.windows" require ] when