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 range #6

Closed NTBBloodbath closed 6 months ago

NTBBloodbath commented 7 months ago

Hey,

I'm loving zat so far, being powered by tree-sitter is a killer feature for me, I've even replaced bat with it already!

I recently saw that the feature of highlighting a line in the file was added, which is great, especially when looking to share something specific in the file with someone! However, sometimes I would like to be able to highlight a range of lines (e.g. when wanting to highlight a function in a bash file) :)

Thanks for the work here, I love being able to replace my system tools with alternatives made in Zig 😄

neurocyte commented 6 months ago

@NTBBloodbath Any suggestions on the format of the cli option for this? I'm think something like this:

Thoughts?

NTBBloodbath commented 6 months ago

That syntax looks natural, I like it :p

neurocyte commented 6 months ago

On second thoughs, I will not implement column highlighting. That would require adding a large dependency for proper unicode support. That is out of scope at the moment.

I will still add multi line highlighting though.