feat: update pauljuliusmartinez/jless to v0.9.0 #359
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.8.0
->v0.9.0
Release Notes
PaulJuliusMartinez/jless
v0.9.0
Compare Source
==================
New features:
ys
will copy unescaped string literals to theclipboard. Control characters remain escaped.
container previews, e.g., (
foo: (3) ["apple", "banana", "cherry"]
)copy commands, that will simply print a value to the screen. This is
useful for viewing the entirety of long string values all at once, or
if the clipboard functionality is not working; mouse-tracking will be
temporarily disabled, allowing you to use your terminal's native
clipboard capabilities to select and copy the desired text.
line numbers refer to what line number a given node would appear on if
the document were pretty printed. This means there are discontinuities
when in data mode because closing brackets and braces aren't
displayed. Relative line numbers show how far a line is relative to
the currently focused line. The behavior of the various combinations
of these settings matches vim: when using just relative line numbers
alone, the focused line will show
0
, but when both flags are enabledthe focused line will show its absolute line number.
numbers. These can be enabled/disabled/re-enabled via command line
flags
--line-numbers
,--no-line-numbers
,--relative-line-numbers
and--no-relative-line-numbers
, or viathe short flags
-n
,-N
,-r
, and-R
respectively.:set number
/:set relativenumber
will enable these settings,:set nonumber
/:set norelativenumber
will disable them, and:set number!
/:set relativenumber!
will toggle them, matchingvim's behavior.
like relative line numbers by default, it is recommended to set up
an alias:
alias jless=jless --line-numbers --relative-line-numbers
.<count>g
or<count>G
.When using
<count>g
(lowercase 'g'), if the desired line number ishidden inside of a collapsed container, the last visible line number
before the desired one will be focused. When using
<count>G
(uppercase 'G'), all the ancestors of the desired line will be
expanded to ensure it is visible.
C
andE
commands, analogous to the existingc
ande
commands, to deeply collapse/expand a node and all its siblings.
Improvements:
index label (e.g., "[8]") is now inverted. Additionally, a '▶' is
always displayed next to the currently focused line, even if the
focused node is a primitive. Together these changes should make it
more clear which line is focused, especially when the terminal's
current style doesn't support dimming (
ESC [ 2 m
).c
ande
commands (and the newC
andE
commands), the focused row will stay at the same spot on the screen.
(Previously jless would try to keep the same row visible at the top of
the screen, which didn't make sense.)
Bug fixes:
the cursor.
after the cursor; previously if a user started a search while focused
on the opening of a Object or Array, any matches inside that container
were initially skipped over.
search matches will continue to be highlighted after expanding the
container.
fails to parse the input.
Other notes:
(
ESC [ 2 K
) for each line, instead of a single "clear screen" escapecode (
ESC [ 2 J
), in the hopes of reducing flicking when scrolling.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.