factor/extra/editors/scite/scite.factor

31 lines
632 B
Factor
Raw Normal View History

2007-09-20 18:09:08 -04:00
! Basic SciTE integration for Factor.
!
! By Clemens F. Hofreither, 2007.
! clemens.hofreither@gmx.net
!
! In your .factor-rc or .factor-boot-rc,
! require this module and set the scite-path
! variable to point to your executable,
! if not on the path.
!
USING: io.launcher kernel namespaces math math.parser
editors ;
IN: editors.scite
SYMBOL: scite-path
"scite" scite-path set-global
: scite-command ( file line -- cmd )
swap
2008-01-24 02:50:40 -05:00
[
scite-path get ,
,
"-goto:" swap number>string append ,
] { } make ;
2007-09-20 18:09:08 -04:00
: scite-location ( file line -- )
2008-01-24 02:50:40 -05:00
scite-command run-detached drop ;
2007-09-20 18:09:08 -04:00
[ scite-location ] edit-hook set-global