devicon-lookup icon indicating copy to clipboard operation
devicon-lookup copied to clipboard

support of [K escape code from ag result

Open shadowwa opened this issue 1 year ago • 0 comments

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

shadowwa avatar Oct 11 '24 12:10 shadowwa