jqq

May 29, 2020 ยท View on GitHub

jq Querier: an interactive wrapper around jq

Requirements

Installation

  • Clone this repository
  • bundle install
  • Optionally: add a nice alias to your ~/.profile or equivalent:
alias jqq="/path/to/jqq.rb"

Usage

Usage: jqq <expr> <file>

Demo

Keybindings

jqq uses readline-like keybindings:

KeybindingAction
Enterre-evaluate expression
ctrl-agoto beginning of line
ctrl-egoto end of line
ctrl-kkill line (delete to end of line)
ctrl-ddelete next character

Future Work

  • smart window resize support (re-run only if needed)
  • stdin support
  • rewrite in another language
  • colors!

License

BSD