<razzy>
umm i want to send list from pil to vip, edit it, and send back to pil. and i think i need vip tutorial :]. any chance for next pilcon?
<Regenaxer>
Yes, good idea
<Regenaxer>
You can either print the list to a file and edit it, or set a variable and edit this symbol
<Regenaxer>
(setq L '(a b c))
<Regenaxer>
(v L)
<Regenaxer>
(v L) is a shortcut for (vi '(L))
<Regenaxer>
When you exit Vip with :x then 'L' has the modified list
razzy has quit [Ping timeout: 252 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 268 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 248 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 252 seconds]
razzy has joined #picolisp
<razzy>
Regenaxer: I was thinking to have running pil that keeps spitting status report to Vip. and in vip i could change some parameters and send it to Pil.
<razzy>
Regenaxer: or could I have something printed to REPL comandline so I could change it and send to pil?
<Regenaxer>
You can also run the report in the Vip repl
<Regenaxer>
In Vip you can edit 3 things
<Regenaxer>
1. Stdin via echo ... |vip
<Regenaxer>
2. Files via (vi "file")
<Regenaxer>
3. Symbols via (v sym1 sym2 ...)
<Regenaxer>
Stdin and files can be combined:
<Regenaxer>
$ report |vip file1 file2
<Regenaxer>
But in any case, Vip *always* edits a file. For stdin or in-memory symbols tmp-files are created (as you see in the status line)
tankf33der has joined #picolisp
<Regenaxer>
Only the command window (the bottom one) has no file associated with it