factor/basis/editors/textwrangler/textwrangler.factor

26 lines
857 B
Factor
Raw Normal View History

2008-04-02 16:11:11 -04:00
! Copyright (C) 2008 Ben Schlingelhof.
! See http://factorcode.org/license.txt for BSD license.
2015-06-01 17:39:30 -04:00
USING: editors io.standard-paths kernel make math.parser
namespaces sequences ;
2008-04-02 16:11:11 -04:00
IN: editors.textwrangler
! TextWrangler ships with a program called ``edit`` if you don't download
! it from the App Store. Since the App Store version is lacking ``edit``,
! there's a separate .zip you can download from:
! http://pine.barebones.com/files/tw-cmdline-tools.zip
! Note that launching with ``open -a`` does not support line numbers.
SINGLETON: textwrangler
textwrangler editor-class set-global
2008-04-02 16:11:11 -04:00
2015-06-01 17:39:30 -04:00
M: textwrangler editor-command
"edit" find-in-path [
[ , number>string "+" prepend , , ] { } make
] [
[
"open" , "-a" , "TextWrangler" ,
[ , ] [ "--args" , number>string "+" prepend , ] bi*
] { } make
2015-06-01 17:39:30 -04:00
] if* ;