0

I was using ivy+swiper for a while, and it has swiper-from-isearch which gives a nice occur-like UI for finding isearch matches. I switched to vertico + consult recently.

I see that consult has consult-line which you can bind into isearch-mode-map, but it's not the same, because it does regexp matching rather than literal string matching.

Is there a version of consult-line that matches the same way plain (non-regexp) Isearch does?

Drew
  • 75,699
  • 9
  • 109
  • 225
GaryO
  • 476
  • 2
  • 16

2 Answers2

0
 (use-package orderless
 :ensure t
 :init
 (setq completion-styles '(orderless)
   completion-category-defaults nil
   completion-category-overrides '((file (styles . (partial-completion))))))    

You have to install orderless, and consult-line with work as swiper.

0

This should be similar to swiper-from-isearch:

(defun consult-line-from-isearch ()
  "Call `consult-line` with the search string from the last `isearch`."
  (interactive)
  (consult-line isearch-string))