mkcms/ivy-yasnippet

Accidentary enter mini-buffer prompt if candidate snippet have completing-read

conao3 opened this issue · 1 comments

Accidentary enter mini-buffer prompt if candidate snippet have completing-read.

repro step

  1. save below snippet as ~/snippet/org-mode/begin_src
# name: begin_src
# key: begin_src
# --
#+begin_src ${1: $$(yas-completing-read "Prompt: "
(append
 '("C++")
 (mapcar
  (lambda (elm)
    (substring (symbol-name elm) 3))
  (cl-remove-if-not
   (lambda (elm)
     (string-prefix-p "ob-" (symbol-name elm)))
   features))))}
  $0
#+end_src
  1. open some org-mode
  2. M-x ivy-yasnippet
  3. move to begin_src candidate
  4. Now prompt enter new completing-read state, mini-buffer say Prompt:.

I can confirm this, but I'm not sure how to fix it.
I've tried using ivy--yasnippet-buffer as suggested here, but it doesn't work because even after inserting the snippet, it doesn't trigger completing read.
Any news on a possible workaround?