PaulJuliusMartinez / jless

jless is a command-line JSON viewer designed for reading, exploring, and searching through JSON data.
https://jless.io
MIT License
4.73k stars 91 forks source link

Align the help on text to make it legible #126

Closed nkh closed 1 year ago

nkh commented 1 year ago

The help text is not align

some entries start with a '*' other not

h  LeftArrow     When focused on an expanded object or array, collapse the
                     object or array. Otherwise, move focus to the parent of
                     the focused node.

  H                Focus the parent of the focused node, even if it is an
                     expanded object or array.

  l  RightArrow    When focused on a collapsed object or array, expand the
                     object or array. When focused on an expanded object or
                     array, move focus to the first child. When focused on
                     non-container values, does nothing.

  J         *  Move to the focused node's next     sibling 1 or N times.
  K         *  Move to the focused node's previous sibling 1 or N times.

  w         *  Move forward   until the next change in depth 1 or N times.
  b         *  Move backwards until the next change in depth 1 or N times.

  PageDown  ^f  *  Move down by one window (or N windows).
  PageUp    ^b  *  Move up   by one window (or N windows).
PaulJuliusMartinez commented 1 year ago

This indented text is intentional, and is based on some of the formatting in less's help page.

The * indicates which commands accept a count, and is also based on less's help page.

nkh commented 1 year ago

Maybe a direct compatison would make my point clearer.

screenshot_2023-07-09_07-23-03