neurocyte / zat

zat is a syntax highlighting cat like utility using tree-sitter and with support for vscode themes
MIT License
33 stars 3 forks source link

Feature request: highlight a specific line #4

Closed postsolar closed 7 months ago

postsolar commented 7 months ago

Use case: I use zat as the highlighter for file preview in a script for interactive grepping based on rg and fzf, so a highlighted line would help me quickly map a search result to its surrounding context in the preview.

neurocyte commented 7 months ago

Yes, this would be great for for fzf --preview. I will add --highlight-line and also --lines to limit the output.