Function: hywiki-insert-link
hywiki-insert-link is an autoloaded, interactive and byte-compiled
function defined in hywiki.el.
Signature
(hywiki-insert-link &optional ARG)
Documentation
Insert at point a HyWiki page#section reference read from the minibuffer.
With optional prefix ARG non-nil, insert a HyWikiWord instead. Add double quotes if the section contains any whitespace after trimming.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
;;;###autoload
(defun hywiki-insert-link (&optional arg)
"Insert at point a HyWiki page#section reference read from the minibuffer.
With optional prefix ARG non-nil, insert a HyWikiWord instead.
Add double quotes if the section contains any whitespace after trimming."
(interactive "*P")
(let ((ref (if arg (hywiki-word-read) (hywiki-page-read-reference))))
(when ref
(when (string-match-p "\\s-" ref)
(setq ref (concat "\"" ref "\"")))
(insert ref)
(skip-chars-backward "\"")
(goto-char (1- (point)))
(hywiki-maybe-highlight-reference))))