json-snatcher
json-snatcher copied to clipboard
Get the path to a JSON element in Emacs.
Ended up rewriting two functions. One of them were not using return values of match-end, the other one was mostly to make sure I understood what the function did before...
In large JSON files (over 20k lines) json-snatcher fails with the error `Stack overflow in regexp matcher`. This occurs even if you are looking at an element that is not...
This would solve this problem with native compilation: https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-09/msg00238.html It solved my issue at least :-)
Simply loading this .el changes the global kill-buffer-hook. It would be cleaner if it only added the hook to buffers where it's actually needed (ie. when adding the buffer to...
defcustom is the workaround I am using https://github.com/Sterlingg/json-snatcher/pull/10
I can't figure out how to use this ... how do you mark an object so as to show the json path? I have json-mode installed ... the video doesn't...
Haven't really thought about what happens in this case. I did a quick test and it seemed to still work when it first failed then parsed correctly after a change.
Will probably do this by reparsing the whole file.