ag.vim icon indicating copy to clipboard operation
ag.vim copied to clipboard

Make it work with --color-match?

Open suan opened this issue 10 years ago • 3 comments

Looks like ag.vim ignores the --color-match option right now. Would be great if it could be supported. Looks like ack.vim doesn't have it either: https://github.com/mileszs/ack.vim/issues/94

suan avatar Mar 01 '14 22:03 suan

This is a great idea! I'm not sure how easy it is do do though... With the following:

let g:agprg="ag --color-match --column"

The matches can't be jumped to, because g:agformat doesn't match the output (which now has color codes in it).

Maybe messing with g:agformat could fix this, and display the colors? I'll have to look into it again later.

losingkeys avatar Mar 09 '14 18:03 losingkeys

I'm not sure that vim'll parse the color codes for different/any terminals when adding strings to the location list. This may be harder than I thought (or just not worth the effort). Need to do more research.

losingkeys avatar Dec 20 '14 23:12 losingkeys

Same here, I was trying to color the matches but ag.vim ignores the --color-match option

Remiol avatar Nov 15 '16 06:11 Remiol