Function: combobulate-cursor-edit-node-type-dwim

combobulate-cursor-edit-node-type-dwim is an interactive and natively compiled function defined in combobulate-cursor.el.

Signature

(combobulate-cursor-edit-node-type-dwim ARG)

Documentation

Edit nodes of the same type by node locus.

Key Bindings

combobulate-cursor-edit-key-map t combobulate-key-map C-c o t t combobulate-options-key-map t t

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-cursor.el
(defun combobulate-cursor-edit-node-type-dwim (arg)
  "Edit nodes of the same type by node locus."
  (interactive "P")
  (with-navigation-nodes (:procedures (combobulate-read procedures-default))
    (if-let ((node (combobulate--get-nearest-navigable-node)))
        (combobulate-cursor-edit-identical-nodes
         node (combobulate-cursor-edit-node-determine-action arg)
         (lambda (tree-node) (and (equal (combobulate-node-type node)
                                    (combobulate-node-type tree-node))
                             (equal (combobulate-node-field-name node)
                                    (combobulate-node-field-name tree-node)))))
      (error "Cannot find any editable nodes here"))))