editor-command ( file line -- command )


Vocabulary
editors

Inputs
filean object
linean object


Outputs
commandan object


Definition

HOOK: editor-command editor-class ( file line -- command )


Methods










M: bbedit editor-command
drop [ "open" , "-a" , "BBEdit" , , ] { } make ;



M: bluefish editor-command
drop [ "open" , "-a" , "Bluefish" , , ] { } make ;






M: chime editor-command
drop [ "open" , "-a" , "Chime" , , ] { } make ;
























M: espresso editor-command
drop [ "open" , "-a" , "espresso" , , ] { } make ;






M: f editor-command
"Select an editor" editor-restarts throw-restarts
[ set-editor ] [
"Note:" print [
[
"To make this editor permanent, in your "
".factor-boot-rc" home-path " or " ".factor-rc"
home-path " add:\n" "USE: editors EDITOR: "
]
] dip [ append ] curry compose output>array pprint-line
] bi editor-command ;







































M: smultron editor-command
drop [ "open" , "-a" , "Smultron" , , ] { } make ;



M: subethaedit editor-command
drop [ "open" , "-a" , "SubEthaEdit" , , ] { } make ;












M: textedit editor-command
drop [ "open" , "-a" , "TextEdit" , , ] { } make ;









M: textwrangler editor-command
"edit" find-in-path
[ [ , number>string "+" prepend , , ] { } make ] [
[
"open" , "-a" , "TextWrangler" ,
[ , ] [ "--args" , number>string "+" prepend , ] bi*
] { } make
] if* ;












M: xcode editor-command
drop [ "open" , "-a" , "XCode" , , ] { } make ;