Andrew, > If the G/re/ command accepted a context argument, presumably dot > should still be set to the line matching /re/ so that a command could be > applied? > > Are you familiar with rlwrap <https://github.com/hanslub42/rlwrap>? > See, for example: > > <https://github.com/slewsys/ed#command-line-editing-and-history>
I am familiar with rlwrap, and my own ed(1) wrapper <https://codeberg.org/aartaka/aed> uses it extensively. > Being able to display addressed lines in context, as mentioned > previously, along with easily recalling commands (e.g., with > <CTRL> + R) comes pretty close to what a visual editor provides. Yes, that’s what I’m aiming for. However, I don’t fully understand the approach you’re hinting at. Can you expand on that? Thanks, -- Artyom Bologov https://aartaka.me
