This release ships with two major new features: basic YAML support and copying to clipboard!
jless will now check the file extension of the input file,
and automatically parse
.yaml files as
YAML and use the same viewer as for JSON data. Alternatively passing in
--yaml flag will force
jless to parse the
input as YAML and can be used when reading in YAML data from stdin.
YAML aliases are automatically expanded, but their corresponding anchors
are not visible, nor are comments. YAML supports non-string keys, and
even non-scalar keys in mappings (e.g., the key of map can be an array
with multiple elements). Non-string keys are shown with square brackets,
[true]: "value", instead of quotes. Non-scalar keys are
handled on the screen and displayed properly, but you cannot expand and
collapse their individual elements.
While navigating data, jless also now supports copying various items to your system clipboard.
yywill copy the value of the currently focused node, pretty printed
yvwill copy the value of the currently focused node in a "nicely" printed one-line format
ykwill copy the key of the current key/value pair
ypwill copy the path from the root JSON element to the currently focused node, e.g.,
yp, but always uses the bracket form for object keys, e.g.,
["foo"]["bar"], which is useful if the environment where you'll paste the path doesn't support the
.keyformat, like in Python
yqwill copy a
jqstyle path that will select the currently focused node, e.g.,
ctrl-dcommands to jump up and down by half the screen's height, or by a specified number of lines.
ctrl-fcommands for scrolling up and down by the height of the screen. (Aliases for
ctrl-dto cancel entering search input.
i, but was undocumented;
ihas become unmapped.)
#) all now accept count arguments
Introducing jless, a command-line JSON viewer.
This release represents a significant milestone: a complete set of basic functionality, without any major bugs.
This GitHub issue details much of the functionality implemented to get to this point. Spiritually, completion of many of the tasks listed there represent versions 0.1 - 0.6.
The intention is to not release a 1.0 version until Windows support is added.