Function: hyrolo-yank

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

Signature

(hyrolo-yank NAME &optional REGEXP-FLAG)

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.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260822.1645/hyrolo.el
;;;###autoload
(defun hyrolo-yank (name &optional regexp-flag)
  "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."
  (interactive (list
		(hsys-consult-grep-headlines-read-regexp
		 #'hyrolo-consult-grep "Yank rolo headline matching")
		current-prefix-arg))
  (push-mark)
  (let ((entry (hyrolo-get-entry name regexp-flag)))
    (when entry
      (insert entry)
      ;; Let user reformat the region just yanked.
      (funcall hyrolo-yank-reformat-function (mark) (point))
      (exchange-point-and-mark))))