Releases: mogelbrod/vim-jsonpath
Releases · mogelbrod/vim-jsonpath
v0.5.2
v0.5.1
v0.5.0
- 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
injsonpath#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
v0.4.0
- 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
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 ifpython3
is available - set it to0
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