Hi y’all,

So I often have this use-case of needing to replace some occurences of a
regex in a file, but only if it’s in a certain context. G sometimes
works for that, if the necessary context is the same line as the
replaced string. But, if the context is spread over lines around the
regex match, I have to manually search for these and excruciatingly edit
them.

Which brings me to: what if G line printing was configurable? Like with
other commands, allowing [pnl] suffix? This way, the output format for
the line to edit might have more information and make it easier to make
decisions.

Extra points: z command suffix to show lines around the affected line
instead of just the line by itself. I mean, this is a huge feature that
I’m not sure y’all are interested in, but it’d unlock a whole bunch of
workflows!

Thanks and sorry,
-- 
Artyom Bologov
https://aartaka.me

Reply via email to