Skip to content

Releases: taku0/json-par

Tweaks

08 Jun 07:40
Compare
Choose a tag to compare
  • Show progress when pretty-printing a long line.
  • Suppress fixup when inserting/deleting reverse solidus.
  • Suppress fixup after destringify.
  • Do not fixup spaces between top-level values.
  • Do not insert a comma after top-level value.
  • When moving to the last value of a one-line object and the value is missing, move just after the colon.

More structual editing

20 May 05:56
Compare
Choose a tag to compare
  • Make it more structual editing.

    Functions marking members no longer mark commas. Instead, when buffer is modified, redundant commas are removed in after-change-functions hook.

    The hook also insert missing commas, quote unquoted keys, and insert empty keys if missing.

    When function is called outside JSON Par mode, those fixups are executed in an advice json-par--fixup-advice.

  • When opening a JSON file with long line, pretty print it. This will improve both usability and performance.

  • Other bug fixes and optimizations.

Small usability improvements

23 Jul 08:34
Compare
Choose a tag to compare
  • Keep position when forwarding/backwarding the last/first member.
  • Add json-par-dwim: currently, pressing ; after forwarding/backwarding the last/first member moves to the cousin member.
  • json-par-multiline: insert space after colon.
  • Other small fixes.

Show ancestors / menu

22 Nov 09:59
Compare
Choose a tag to compare

Show ancestors out of the window. This is disabled by default. Enable it from the menu or set the following custom variables:

  • json-par-show-ancestors-out-of-window: if non-nil, show ancestors out of window.
  • json-par-highlight-ancestors: if non-nil, highlight ancestors of the member under the point.
  • json-par-highlight-ancestors: if non-nil, highlight the member under the point.

Did I say “menu”? Yes, now we have a menu on the menubar.

Allow capital E for exponent

06 Nov 05:39
Compare
Choose a tag to compare

Typing E after a number now inserts it rather than json-par-end-of-list.

Place point before value, not key, when down into object

03 Nov 05:26
Compare
Choose a tag to compare

When json-par-down (key i) is invoked before an object, the point is placed before value, not key of the first key-value pair.

Example (| is the point):

|{
  "key": "value"
}

// ↓ `i` (`json-par-down`)

{
  "key": |"value"
}

You can customize this with the variable json-par-place-after-down-into-object.

Initial release

23 Oct 09:48
Compare
Choose a tag to compare

This is the first release of JSON Par mode.