jq-zsh-plugin

jq zsh plugin

MIT License

Stars
316
Committers
10

Bot releases are visible (Hide)

jq-zsh-plugin - v0.6.1 Latest Release

Published by reegnz 6 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/reegnz/jq-zsh-plugin/compare/v0.6.0...v0.6.1

jq-zsh-plugin - v0.6.0

Published by reegnz 11 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/reegnz/jq-zsh-plugin/compare/v0.5.1...v0.6.0

jq-zsh-plugin - bugfix release

Published by reegnz 11 months ago

What's Changed

Full Changelog: https://github.com/reegnz/jq-zsh-plugin/compare/v0.5.0...v0.5.1

jq-zsh-plugin - v0.5.0

Published by reegnz 11 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/reegnz/jq-zsh-plugin/compare/v0.4.0...v0.5.0

jq-zsh-plugin - 0.4.0: improved completion suggestions

Published by reegnz about 2 years ago

The completions provided by jq-repl were not always usable.

Example, for an object like this:

{
    "a": {
        "hello": "there",
        "AABB": "CC",
        "abc123ZZZ": "cool",
        "5day": "next",
        "abc-123": "test",
        "aaa/bbb": "whatever"
    }
}

We used to generate completions like this:

.
.a
.a.5day
.a.AABB
.a.aaa/bbb
.a.abc-123
.a.abc123ZZZ
.a.hello

Note, that things like .a.aaa/bbb and .a.abc-123 are invalid jq expressions.

With this release the produced completion output is now improved to recognize these issues and produce a more sophisticated completion output, like this:

.
.a
.a.AABB
.a["5day"]
.a["aaa/bbb"]
.a["abc-123"]
.a.abc123ZZZ
.a.hello
jq-zsh-plugin - 0.3.0: gojq support

Published by reegnz over 2 years ago

Allow using gojq instead of jq

jq-zsh-plugin - 0.2.1: fix jq-paths script

Published by reegnz almost 3 years ago

jq-zsh-plugin - 0.2.0: support shell alias expansion

Published by reegnz almost 3 years ago

jq-zsh-plugin now works with zsh aliases!

Example:

alias k='kubecdl'
alias pods='k get pods -A -o json'
pods <alt+j>

If you don't want automatic shell alias expansion, then put this in your .zshrc:

JQ_ZSH_PLUGIN_EXPAND_ALIASES=0
jq-zsh-plugin -

Published by reegnz about 3 years ago

jq-zsh-plugin -

Published by reegnz about 3 years ago

The plugin has been pretty stable so it makes sense to start doing releases.

New features since inception:

  • jq paths in fuzzy-search, tab-to-complete after selection
  • ctrl+r to re-run shell command and get updated JSON