Giter VIP home page Giter VIP logo

Comments (8)

stedolan avatar stedolan commented on July 25, 2024

This does sound handy, but definitely a task for later.

Are you thinking of syntactic JSON highlighting (make all object keys vomit-green?) or grep-style context highlighting (make the thing I was searching for bright red?)

from jq.

suvash avatar suvash commented on July 25, 2024

well, I meant more along the lines of syntactic highlighting. (afaik, grep is already configurable by the user )

Something smart like pjson ( http://igorgue.com/pjson/ ) or Ruby's awesome_print ( http://www.rubyinside.com/awesome_print-a-new-pretty-printer-for-your-ruby-objects-3208.html ) would be really sweet.

Sane defaults that uses the ANSI Terminal colors (http://en.wikipedia.org/wiki/ANSI_escape_code#Colors ) would be nice, because then every terminal could override those with their own theme colors.

from jq.

stedolan avatar stedolan commented on July 25, 2024

Hrm, that doesn't sound too bad. I'd go with something more like pjson than awesome_print; awesome_print looks amazing but it's output only makes sense to a Ruby programmer and it isn't valid JSON.

from jq.

billehunt avatar billehunt commented on July 25, 2024

yes please

from jq.

suvash avatar suvash commented on July 25, 2024

Yep. I understand. just meant awesome_print for an example. pjson like formatting would be great.

from jq.

ahmetb avatar ahmetb commented on July 25, 2024

COLORS PLEASEEE!!!

from jq.

ruxkor avatar ruxkor commented on July 25, 2024

Why not use something like ccze instead and piping jq into it? If the -A switch is supplied, raw ANSI ist used, perfect to pass it to something like less (with -R).

from jq.

suvash avatar suvash commented on July 25, 2024

ccze looks great, but I'd really love if this was built into jq. What I love about jq is that it doesn't need runtime env. like perl/ruby/python, else there are prolly tons of tools out there.

from jq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.