Function: embark--ivy-selected
embark--ivy-selected is a natively 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 /nix/store/lls066p88vbzffl5j0d16jbhwpn2zfz2-emacs-packages-deps/share/emacs/site-lisp/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)))))