]> code.delx.au - gnu-emacs-elpa/commit
ivy.el (ivy-done): Allow ivy-dispatching-done to exit with no cands
authorOleh Krehel <ohwoeowho@gmail.com>
Mon, 18 Apr 2016 14:23:14 +0000 (16:23 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Mon, 18 Apr 2016 14:23:14 +0000 (16:23 +0200)
commit2fb8d86b5fa7d621f89cd758ebd6b831089fdd4c
treed710d4cbd20fba5f7a7f27e7e223bef83a3f022e
parent6fae6e0909fa1376bea5abf3a82e4253968aba31
ivy.el (ivy-done): Allow ivy-dispatching-done to exit with no cands

Example of use:

(defun ivy-recentf-with-last-input (_x)
  (ivy-read "Recentf: " recentf-list
            :action (lambda (f)
                      (with-ivy-window (find-file f)))
            :initial-input ivy-text
            :caller 'ivy-recentf))

(ivy-set-actions t '(("r" ivy-recentf-with-last-input "recentf")))

The input may match no candidates, but it's still good for
`ivy-recentf-with-last-input', since it uses `ivy-text' instead of
`ivy--current'.
ivy.el