I use projectile and counsel-projectile regularly. Recently I was trying to use embark with counsel-projectile-find-file. Somehow embark is unable to determine the type of the selection. Is anyone using this combination successfully?
Below function from embark library gets executed when I press embark-act after selecting a file
(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)))))
I debugged an found that the following expression is returning nil
(completion-metadata-get (embark--metadata) 'category)
Not sure what am I missing.