@mattof the day ive been waiting for
If I had the ability to wave a magic wand and go back in time to add one feature to ed(1)
, it would be the ability to filter a range through an external filter. You can write to one, you can read from one, and you can shell out to run things, but you can't
1,10 !fmt
to reformat a range. Mimicking that in non-hypothetical ed(1)
requires multiple manual steps with possible odd edge cases, and writing temp data (along with possibly cleaning it up).
Yes, there's rlwrap(1)
to provide history and tab-completion, but it doesn't provide a feature for piping a range of lines through an external command.
In proper Unixy fashion, you can use the -m
option in rlwrap
to enable control+, allowing you to edit the current readline buffer in $EDITOR
, which means you can edit your ed(1)
command history in ed(1)
if that's your jam
@mattof
I thought all ed were just symlink invocations of vim at this point, and why isn't there a changelog to be found? What could possibly be new or changed in ed at this point?
@mattof til there's things that need updating in ed