romkatv / zsh4humans

A turnkey configuration for Zsh
MIT License
1.81k stars 116 forks source link

Question on where specific syntax highlighting is being handled #327

Closed davidbgonz closed 1 month ago

davidbgonz commented 1 month ago

Hello. I recently moved machines and figured it was a good time as any to do some housekeeping with my configs. I was adjusting some color settings on fzf and I had a question about syntax highlighting during fzf searches.

I'm using your handy color table for this example:

This is how it normally looks for me from fzf-styntax-highlighting. image

This is after I do a recursive search. image

What is handling the syntax highlighting on the bottom line in the 2nd image?

romkatv commented 1 month ago

The second screenshot shows z4h-fzf-history, bound to Ctrl-R by default. Highlighting in there is done by bat.

https://github.com/romkatv/zsh4humans/blob/2a27b0d585ec7b70d6889a921accfc450cd2f73a/fn/z4h-fzf-history#L3-L14

davidbgonz commented 1 month ago

Thank you! Going on 3 years of using these configs and I'm still learning what it can do. Thanks for such a great setup! Going to close this now.