Releases: taku0/json-par
Tweaks
- 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
-
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
- 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
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
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
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
This is the first release of JSON Par mode.