0.4.0: improved completion suggestions
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