Skip to content

Releases: mogelbrod/vim-jsonpath

v0.5.2

16 Jun 13:37
Compare
Choose a tag to compare
  • Avoid error if from_line is less than 1
  • Avoid printing goto() outcome on the same line as input

v0.5.1

16 Jun 12:26
Compare
Choose a tag to compare
  • Use chr() in python script instead of unichr() (removed in python3)

v0.5.0

05 Jun 10:03
Compare
Choose a tag to compare
  • Don't suggest <expr> maps as they move the cursor upon execution
  • Make calling :JsonPath with no arguments correctly parse until cursor
  • Add missing varargs to jsonpath#echo() (fixes #12)
  • Add default value for to_line in jsonpath#scan_buffer()

The mapping syntax have been updated with a version the doesn't interfere with
the cursor position. If you've defined mappings to the plugin it is therefore
recommended to update them to follow the updated syntax:

au FileType json noremap <buffer> <silent> <leader>d :call jsonpath#echo()<CR>
au FileType json noremap <buffer> <silent> <leader>g :call jsonpath#goto()<CR>

v0.4.1

04 Jun 08:54
Compare
Choose a tag to compare
  • Fix a bug that messed up the parser when it encountered braces and brackets within a quoted string (#11)

v0.4.0

21 May 21:43
Compare
Choose a tag to compare
  • The JsonPath command can now be invoked with a range, in which case it will only scan the lines within the range
  • The above feature is also available to the jsonpath.py CLI via a new --from parameter
  • Align vimscript algorithm with the python version
  • Fix for parser ignoring last line in line mode (used by vim)
  • Fix verbose printing

v0.3.0

17 May 22:01
Compare
Choose a tag to compare

This version adds a python implementation of the existing JSON scanning algorithm written in vimscript. Initial testing suggests big performance improvements (~0.5s vs 19.5s for a 330kb json file). Both implementations will live side-by-side until v1.0 is released, at which point this plugin likely will require python to run.

  • Add g:jsonpath_use_python option which by default is enabled if python3 is available - set it to 0 to disable the python algorithm
  • The jsonpath.py module may be used outside vim if anybody wants to integrate it into another editor
  • Add some tests for the python algorithm

v0.2.0

10 Jul 08:32
Compare
Choose a tag to compare
  • Add g:jsonpath_register option allowing automatic yanking of path to a register when calling :JsonPath (or jsonpath#echo())

v0.1.1

01 Nov 13:43
5d27bf6
Compare
Choose a tag to compare
  • Respect g:jsonpath_delimeter when calling :JsonPath path:with:different:delimeters

v.0.1.0

05 Jul 18:27
Compare
Choose a tag to compare
  • Initial release