Function: embark--ivy-selected
embark--ivy-selected is a byte-compiled function defined in embark.el.
Signature
(embark--ivy-selected)
Documentation
Target the currently selected item in Ivy.
Return the category metadatum as the type of the target.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defun embark--ivy-selected ()
"Target the currently selected item in Ivy.
Return the category metadatum as the type of the target."
;; my favorite way of detecting Ivy
(when (memq 'ivy--queue-exhibit post-command-hook)
(cons
(completion-metadata-get (embark--metadata) 'category)
(ivy--expand-file-name
(if (and (> ivy--length 0)
(stringp (ivy-state-current ivy-last)))
(ivy-state-current ivy-last)
ivy-text)))))