nschum/full-ack

Don't include color codes in buffer

nriley opened this issue · 6 comments

When I try to copy filenames from the results buffer, the color codes are at least partially still there, so I end up with lines such as:

[0m
�[1;33m

Since (I think) these are all replaced by overlays, could the raw codes be removed?

You're right. I didn't think of that.

Unfortunately full-ack currently uses font-lock, so removing the codes requires somewhat of a rewrite...

Yeah, I eventually discovered that. Someday, I guess...

Well, apparently it wasn't that hard... Please check out https://github.com/nschum/full-ack/tree/experimental

Maybe it didn't break anything. ;)

Thanks!

The only problem I'm noticing is when I use C-x ` to go through search results, the point in the file (as opposed to the full-ack buffer) is ending up at the end of the previous line rather than at the place where ack matched. For example:

Example

OK. Please try again. :)

Much better, thanks!