Function: combobulate-query-builder-root-to-point
combobulate-query-builder-root-to-point is an interactive and natively
compiled function defined in combobulate-query.el.
Signature
(combobulate-query-builder-root-to-point)
Documentation
Interactively build a query from the root node to point.
Key Bindings
combobulate-key-map C-c o B r combobulate-options-key-map B r combobulate-query-key-map r
Source Code
;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-query.el
(defun combobulate-query-builder-root-to-point ()
"Interactively build a query from the root node to point."
(interactive)
(let* ((node (combobulate-node-at-point nil t))
(query (combobulate-build-nested-query
(cons node (combobulate-get-parents node))
(combobulate-query-builder-capture-group-fn
'@hl.default (combobulate-query-builder-get-node-text node) 1)))
(combobulate-query-default-query (combobulate-query-builder-to-string query)))
(combobulate-query-builder)))