completion/selectrum -> completion/vertico, part 2

- Rename module from `:completion selectrum` to `:completion vertico`
- Rename all files involved
- Do *not* yet rename all the functions, as that messes up git's rename
  detection.
This commit is contained in:
Itai Y. Efrat 2021-07-09 20:16:11 +03:00
parent f9e1c99b2b
commit 24eaa1317c
33 changed files with 79 additions and 90 deletions

View file

@ -10,9 +10,9 @@ If prefix ARG is set, prompt for a directory to search from."
(read-directory-name "Search directory: ")
default-directory)))
(call-interactively
(cond ((featurep! :completion ivy) #'+ivy/project-search-from-cwd)
((featurep! :completion helm) #'+helm/project-search-from-cwd)
((featurep! :completion selectrum) #'+selectrum/project-search-from-cwd)
(cond ((featurep! :completion ivy) #'+ivy/project-search-from-cwd)
((featurep! :completion helm) #'+helm/project-search-from-cwd)
((featurep! :completion vertico) #'+selectrum/project-search-from-cwd)
(#'rgrep)))))
;;;###autoload
@ -31,7 +31,7 @@ If a selection is active, pre-fill the prompt with it."
(if (region-active-p)
#'swiper-isearch-thing-at-point
#'swiper-isearch))
((featurep! :completion selectrum) #'isearch-forward))))
((featurep! :completion vertico) #'isearch-forward))))
;;;###autoload
(defun +default/search-project (&optional arg)
@ -48,9 +48,9 @@ If prefix ARG is set, include ignored/hidden files."
(user-error "There are no known projects"))
default-directory)))
(call-interactively
(cond ((featurep! :completion ivy) #'+ivy/project-search)
((featurep! :completion helm) #'+helm/project-search)
((featurep! :completion selectrum) #'+selectrum/project-search)
(cond ((featurep! :completion ivy) #'+ivy/project-search)
((featurep! :completion helm) #'+helm/project-search)
((featurep! :completion vertico) #'+selectrum/project-search)
(#'projectile-ripgrep)))))
;;;###autoload
@ -77,7 +77,7 @@ If prefix ARG is set, prompt for a known project to search from."
(+ivy/project-search nil symbol))
((featurep! :completion helm)
(+helm/project-search nil symbol))
((featurep! :completion selectrum)
((featurep! :completion vertico)
(+selectrum/project-search nil symbol))
((rgrep (regexp-quote symbol))))))

View file

@ -30,7 +30,7 @@
(cond ((fboundp 'consult-yank-pop) #'consult-yank-pop) ;HACK see @ymarco's comment on #5013 and TODO.org in the selecturm module.
((fboundp 'counsel-yank-pop) #'counsel-yank-pop)
((fboundp 'helm-show-kill-ring) #'helm-show-kill-ring)
((error "No kill-ring search backend available. Enable ivy, helm or selectrum!")))))
((error "No kill-ring search backend available. Enable ivy, helm or vertico!")))))
;;;###autoload
(defun +default/yank-buffer-path (&optional root)