The command is bound in `swiper-map'.
Add a warning for when it's called via "M-x", since it's not supposed to
be called that way.
(declare-function multiple-cursors-mode "ext:multiple-cursors-core")
(defun swiper-mc ()
+ "Create a fake cursor for each `swiper' candidate."
+ (interactive)
(unless (require 'multiple-cursors nil t)
(error "multiple-cursors isn't installed"))
+ (unless (window-minibuffer-p)
+ (error "Call me only from `swiper'"))
(let ((cands (nreverse ivy--old-cands)))
(unless (string= ivy-text "")
(ivy-exit-with-action