|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Calling external editor from APL session |
Date: | Sun, 27 Nov 2016 11:29:03 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi Alexey, it is possible though not very convenient:. You could write a function doing the following: 1. read EDITOR with ⎕ENV (or use vim right away) 2. call your editor using )HOST or with popen() via ⎕FIO 3. read the file produced by the editor with ⎕FIO 4. ⎕FX the the function text read. You can optionally bind that function to a user defined command. Another option could be Blake McBride's editor written in APL, see http://www.gnu.org/software/apl/Community.html Or Elias' emacs mode for GNU APL. /// Jürgen On 11/26/2016 11:39 PM, Alexey
Veretennikov wrote:
Hi, Is it possible to call external editor to edit function when using GNU APL? For example I would like to call Vim when I want to modify the function. For example in Dyalog there is an )ed command: http://help.dyalog.com/15.0/Content/Language/System%20Commands/ed.htm I'm looking at something like this for GNU APL but just calling whatever is set in the EDITOR variable. |
[Prev in Thread] | Current Thread | [Next in Thread] |