2009/11/4 Sven Guckes <maillist-wmi-announce_AT_guckes.net>:
> * Kris Maglione <maglione.k_AT_gmail.com> [2009-11-04 08:03]:
>> On Sun, Nov 01, 2009 at 02:01:06PM -0500, John Yates wrote:
>>> What made this mechanism so pleasant to use was that all
>>> text areas in the screen (editing buffers, input panes,
>>> and output transcripts) shared a common set of editing key
>>> bindings, similar to vi or emacs. A very common idiom was
>>> to list a directory, switch the input pane to disconnected
>>> mode, copy the directory listing to the input pane, modify
>>> that copy of the listing using some regular expression
>>> substitutions to turn it into one or more commands on
>>> each file, and revert the input pane to connected mode.
>>>
>>> Obviously in any *nix environment one can do the same thing
>>> by redirecting the output from ls to a file, open that file
>>> in an editor, modifying it, saving it, and finally sourcing
>>> the edited file in one's shell. The input pane mechanism
>>> simply made such operations faster and more intuitive:
>>> no inventing a file name, no opening a separate editor,
>>> no issuing a source command to one's shell.
>>
>> This actually isn't especially difficult to do
>> in vim or some other editor. In vim alone,
>> for instance, you can do something like,
>>
>> :r !ls
>> :v/\.js/d|s/^/rm /
>> :w !sh
Should also work with ed:
r !ls
v/\.js d
g//s/^/echo /
w !sh
Kind regards,
Anselm
Received on Wed Nov 04 2009 - 12:39:27 UTC
This archive was generated by hypermail 2.2.0 : Wed Nov 04 2009 - 12:48:02 UTC