Skip to content

support of [K escape code from ag result#976

Open
shadowwa wants to merge 1 commit intocoreyja:mainfrom
shadowwa:add-K-escape-for-ag
Open

support of [K escape code from ag result#976
shadowwa wants to merge 1 commit intocoreyja:mainfrom
shadowwa:add-K-escape-for-ag

Conversation

@shadowwa
Copy link
Contributor

in ag results, the formating include ESC[K (erase from cursor to end of line) beside the color/graphic escape sequences ESC[1;34;{...}m

that give

ESC[1;32mpath/file.phpESC[0mESC[K:ESC[1;33m1234ESC[0mESC[K:30:    some line with a ESC[30;43mmatchESC[0mESC[K in the file

as only color/graphic escape sequences a strip with --color the resulting filename still contain ESC[K and the filetype not recognised: path/file.phpESC[K

@coreyja
Copy link
Owner

coreyja commented Apr 8, 2025

@shadowwa Love this fix as well!

Thanks for adding tests too! Will get this released shortly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants