PaulJuliusMartinez / jless

jless is a command-line JSON viewer designed for reading, exploring, and searching through JSON data.
https://jless.io
MIT License
4.61k stars 87 forks source link

Requesting git integration #145

Open cohml opened 5 months ago

cohml commented 5 months ago

Simple to explain, perhaps complex to implement, but I don't see any issues about this, so I'll throw it into the ring.

I've been using bat to view JSON files for years. bat has a nice feature whereby unstaged lines in files tracked by git have a little visual indicator in the margin (~), e.g.

image

I just discovered jless and it will certainly supplant bat for JSON viewing in my workflow. However bat is still superior in this area, the git integration piece.

If jless could do something similar - provide some indication of the status of the current file with respect to git - that would be hugely useful.