launch editors with run-detached. the naming convention foo-location doesn't make sense with some text editors, so rename the edit words to the text editor name
parent
3c49944fc1
commit
a0b9cfd602
|
@ -25,7 +25,7 @@ IN: editors.scite
|
|||
number>string "-goto:" prepend ,
|
||||
] { } make ;
|
||||
|
||||
: scite-location ( file line -- )
|
||||
: scite ( file line -- )
|
||||
scite-command run-detached drop ;
|
||||
|
||||
[ scite-location ] edit-hook set-global
|
||||
[ scite ] edit-hook set-global
|
||||
|
|
|
@ -2,9 +2,9 @@ USING: definitions io.launcher kernel math math.parser parser
|
|||
namespaces prettyprint editors make ;
|
||||
IN: editors.textedit
|
||||
|
||||
: textedit-location ( file line -- )
|
||||
: textedit ( file line -- )
|
||||
drop
|
||||
[ "open" , "-a" , "TextEdit", , ] { } make
|
||||
try-process ;
|
||||
run-detached drop ;
|
||||
|
||||
[ textedit-location ] edit-hook set-global
|
||||
[ textedit ] edit-hook set-global
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
USING: definitions io.launcher kernel math math.parser parser
|
||||
namespaces prettyprint editors make ;
|
||||
|
||||
IN: editors.textmate
|
||||
|
||||
: textmate-location ( file line -- )
|
||||
: textmate ( file line -- )
|
||||
[ "mate" , "-a" , "-l" , number>string , , ] { } make
|
||||
try-process ;
|
||||
run-detached drop ;
|
||||
|
||||
[ textmate-location ] edit-hook set-global
|
||||
[ textmate ] edit-hook set-global
|
||||
|
|
Loading…
Reference in New Issue