bat
bat copied to clipboard
[Feature request] --highlight-line to support regex match
It would be a great help to distinguish specific areas of the printed document by passing --highlight-line 'pattern' . This is extremely useful for troubleshooting. We could use underlining or bold for the matched pattern.
looking for similar thing. less -p <regex> highlights the pattern on opening the file, any plan for this feature?
I was able to come up with this cmd that highlights the Regex match by relying on the pattern match functionality from less
bat --paging=always --pager 'less -R -p PATTERN'