-
-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colored output on grep_string? #1240
Comments
PR that wants to do that: #670 currently its not supported because then we would need to parse the shell color codes. I send @jesseleite a code snippet (a term color code parser) that a wrote some time ago, with that we could realize that. Maybe i should share this snippet and someone else can pick it up, i know he is very busy lately with a newborn :) |
Unsolicited and uninformed side comment: if that requires |
Hey @Conni2461, I've been speaking to @jesseleite and wanted to try to help out with this. Could you please post the snippet for the color parser? |
json would be easier to implement no doubt. But we need to see how fast it will be in the end, when its done. We need to be able to run it in I share both the gist + my conversation because it contains my thoughts on how to solve this issue. |
I suggest that you only tackle the highlight changes and not everything from raw_live_grep pr. Splitting it up and doing it in small chunks might probably be the better solution for this. :) |
@Conni2461 that's great and my tele-tabby.nvim extension already deals with highlighting without columns. |
@Conni2461 I have a few issues right now.
|
offset seems like a good idea, we can then calculate that one dynamically. Right now lets make those highlight groups const. Later we can say that you can change it via opts. But all of this is easier to discuss with a WIP PR :) |
Sorry to ask such beginner questions but what's the best way to work on these kind of things?
or should i try to package things as extensions where possible to avoid conflicts? Feels like it might be time to put on my big boy pants and learn to use git properly. |
I've submitted a PR, #1281. @Conni2461 I wasn't sure where to put your I made a few changes to the Finally I'm passing in my own function from the entry maker to match color codes to Telescope Highlighting. For now it's just matching these:
|
Is your feature request related to a problem? Please describe.
Hi there, finally came around to adopt telescope and one thing that I miss from my fzf days is the ability to filter colored output from from rg.
If I pass
--color=always
to rg, telescope doesn't display any results, and I assume that filtering on ansi codes isn't really supported?Describe the solution you'd like
I'd like to be able to invoke
grep_string()
and process colored output from rg.Describe alternatives you've considered
No colors? 🙈
Additional context
If this is something yall think makes sense, I can try to send a PR.
The text was updated successfully, but these errors were encountered: