Function: hyrolo-yank

hyrolo-yank is an autoloaded, interactive and byte-compiled function defined in hyrolo.el.

Signature

(hyrolo-yank NAME &optional REGEXP-FLAG EXCLUDE-SUB-ENTRIES)

Documentation

Insert at point the first HyRolo entry with a headline containing NAME.

If the consult package is installed, interactively select and complete the entry to be inserted.

With optional prefix arg, REGEXP-FLAG, treat NAME as a regular expression instead of a string.

With optional EXCLUDE-SUB-ENTRIES non-nil, exclude all sub-entry records below the yanked one.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260923.1433/hyrolo.el
;;;###autoload
(defun hyrolo-yank (name &optional regexp-flag exclude-sub-entries)
  "Insert at point the first HyRolo entry with a headline containing NAME.
If the `consult' package is installed, interactively select and complete
the entry to be inserted.

With optional prefix arg, REGEXP-FLAG, treat NAME as a regular expression
instead of a string.

With optional EXCLUDE-SUB-ENTRIES non-nil, exclude all sub-entry records
below the yanked one."
  (interactive (list
		(hsys-consult-grep-headlines-read-regexp
		 #'hyrolo-consult-grep "Yank rolo headline matching")
		current-prefix-arg
                t))
  (push-mark)
  (let ((entry (hyrolo-get-entry name regexp-flag exclude-sub-entries)))
    (when entry
      (insert entry)
      ;; Let user reformat the region just yanked.
      (funcall hyrolo-yank-reformat-function (mark) (point))
      (exchange-point-and-mark))))