Hi,
the )COPY of text files is pretty new, so we have not much experience
with it yet.
I could make the ∇-editor aware that a )COPY is in progress and that
functions shall be
deleted automatically by the ∇-editor.
/// Jürgen
On 04/26/2014 03:08 AM, enz...@gmx.com wrote:
I delete the email addresses from the replies i don't know if it is even needed
to do that
I've put together the following based on Jurgen's info about )copy text_file
(with !# in first line) for editing fns outside of the workspace with vi
one problem? i've found is - if the fns already exists then )copy text_file
with it in it causes not overwriting but addition addition to it - i guess the
way it works is the ∇ opens the file and accepts new input...
okay so that is why i use
⎕ex 'ai' (run manually - i will put this into the edit fns after i can copy
the text file in - in the fns
then the following 'edit fns'
#! edit
∇rs←edit fn;fp
'lib_file_io.so' ⎕FX 'FILE_IO'
⍝ ]XTERM OFF this was needed at one time run in ws(gives error if run here
though) during dev of this so i left it but doesn't seem to be needed any more
fp←'r' FILE_IO[24] 'vi workspaces/',fn,' < `tty` > `tty`'
FILE_IO[25] fp
⍝ ⎕ex fn
⍝ ⎕cp fn need dev of
∇
edit 'a1'
you can put vars and fns in a1
)copy ai
On Sat, 26 Apr 2014 08:38:40 +0800
Elias Mårtenson <lokedhs> wrote:
There isn't, but implementing it is possible in APL itself. To my knowledge
this has not been done yet.
Regards,
Elias
On 26 Apr 2014 07:16, <enztec> wrote:
I've found ⎕ex that can used in a function since )erase can't so is there
a suitable ⎕cp for )copy - i've looked in all the .def files and blown up
many a ws trying to find it so any help would be appreciated - also is
there a list of all the ⎕ commands - i'd be glad to write up a simple usage
file for them
btw this is like the 4th post - if it gets no response i won't post any
more