Closed psprint closed 1 year ago
Hi, Could be the PR be merged? It's an useful feature, I'm just used it to highlight a preamble of introducionary lines in a Tig run as the item chooser (like fzf), which is nice as the UI is the same as Tig.
Once again you reinvent the wheel, Tig already has a coloring engine that can be extended to support regular expressions... Look for the updated syntax in the commit message or in tigrc.5.adoc.
The new support is great, I was able to colorize output of my new tigsuite
s feature plugin:
It allows to create project and subproject file lists that can be opened from tig
:
However, it seems that the color always spans whole line. Would it be hard to colorize different parts of lines in different color?
A third attempt after #1223 to commit flexible pager view output highlighter.
Any line matching the regex given by option
color_pager_regex
will be drawn in a new color ↔color-match
. The option is empty by default, as requested. The color is magenta by default.Example:![2022-12-27-150236_1888x926_scrot](https://user-images.githubusercontent.com/6049288/209677685-d0a08e0d-74be-4e85-b7f4-5f2b5fe4a710.png)
Typically useful to make compiler warnings easy visible.