hoogle icon indicating copy to clipboard operation
hoogle copied to clipboard

Search output colorizer

Open head-gardener opened this issue 2 years ago • 0 comments

Another crack at #133, using ansi-terminal. You've mentioned on #363 that it would be preferable to adapt web-server's approach to highlights - which I did here. targetInfo and targetResultDisplay pass targetItem to highlightItem when color is on. On highlightItem - it needs to be refactored to support arbitrary outputs (HTML and ANSI currently) if this PR goes forward.

WIP, opening PR to get some feedback.

  1. Should we check for color support?
  2. What else should be colorized? Currently it's just the name.

Preview image

head-gardener avatar Nov 07 '23 12:11 head-gardener