I believe you have to keep the addr file open, while
you are making changes to it (through ctl or otherwise)
and while you read from the data file.
ak
On Sun, Nov 27, 2011 at 7:03 AM, Jacek Masiulaniec
wrote:
> In plan9port acme, I'd like a command to copy selected text into new window.
> Here'
In plan9port acme, I'd like a command to copy selected text into new window.
Here's rc implementation:
% cat >/tmp/copy
#!/usr/bin/env rc
. $PLAN9/lib/acme.rc
winctl 'addr=dot'
winread data >/tmp/selection
@{
newwindow
cat /tmp/selection | winwrite body
}
%
Consider the scenario: