Function: combobulate-json-pretty-print-node-name

combobulate-json-pretty-print-node-name is a natively compiled function defined in combobulate-json.el.

Signature

(combobulate-json-pretty-print-node-name NODE DEFAULT-NAME)

Documentation

Pretty print the node name for JSON mode.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-json.el
(defun combobulate-json-pretty-print-node-name (node default-name)
  "Pretty print the node name for JSON mode."
  (pcase (combobulate-node-type node)
    ("pair" (combobulate-node-text (combobulate-node-child-by-field node "key")))
    ("string" (combobulate-string-truncate
               (concat (combobulate-node-text node))
               40))
    (_ default-name)))