Function: json-ts-jq-path-at-point
json-ts-jq-path-at-point is an interactive and byte-compiled function
defined in json-ts-mode.el.gz.
Signature
(json-ts-jq-path-at-point)
Documentation
Show the JSON path at point in jq format.
Probably introduced at or before Emacs version 31.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/json-ts-mode.el.gz
(defun json-ts-jq-path-at-point ()
"Show the JSON path at point in jq format."
(interactive)
(if-let* ((node (treesit-node-at (point))))
(let ((path (json-ts--path-to-jq (json-ts--get-path-at-node node))))
(kill-new path)
(message "%s" path))
(user-error "No JSON node at point")))