less: Strip all ANSI sequences, not just SGR

Kitty's shell integration uses OSC sequences to mark the prompt and
output in the scrollback buffer. When opening that in vim through less I
want these to be gone as well.
This commit is contained in:
2025-09-19 01:36:54 +02:00
parent 2b31632914
commit 5128d15251

View File

@@ -8,8 +8,8 @@
# NOTE: ^P omits the "done" message
# NOTE: '' jumps back to the previous position
#
# edit in vim without any ANSI SGR sequences (e.g. color)
e noaction g|$no-ansi-sgr | nvim -\n''
# edit in vim without any ANSI escape sequences (e.g. color)
e noaction g|$no-ansi | nvim -\n''
# edit in vim while keeping them
E noaction g|$nvim -\n''