jmespath / jmespath.terminal

JMESPath exploration tool in the terminal
Other
460 stars 54 forks source link

Change ctrl-p to be an output mode toggle #6

Closed jamesls closed 9 years ago

jamesls commented 9 years ago

This is one way to address #5.

I'd like to play around with this a bit more and make sure this is the behavior I'd like, but this seems like a clean way to handle either printing the expression or the result.

Demo:

jpterm-output-demo

Note that this is a backwards incompatible change, but I haven't actually found the printing multiple expression via repeated ctrl-p behavior all the useful in practice and I think long term this is better.

jamesls commented 9 years ago

After sitting on this for a while, I like this change. I'm going to go ahead and move forward with this.