From 8369e93657c6c55f2bf3d4f330ed62a5c2219ebe Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 9 Apr 2021 14:13:45 -0500 Subject: Add ctrlf TODO: incorporate some kind of visual find-replace with ctrlf --- init.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/init.el b/init.el index a7c8128..d70aeb0 100644 --- a/init.el +++ b/init.el @@ -499,6 +499,22 @@ call `zzz-to-char'." (:global "M-z" acdw/zzz-up-to-char)) +;;; Search & Replace +;; +;; I use `ctrlf' for search (it is more "sane" than `isearch'), but I also like +;;`anzu' for `query-replace' (M-%, etc). At some point, I want to make them +;;better friends (i.e., allow calling `anzu-isearch-query-replace' from within +;;`ctrlf'), but I have yet to write the necessary functionality. + +;; Now that I'm thinking about it, I could /maybe/ switch to `visual-regexp' +;; for `query-replace' functionality, since the number of matches is taken care +;; of in `ctrlf'. .. + +(setup (:straight ctrlf) + (:option ctrlf-default-search-style 'fuzzy-regexp + ctrlf-alternate-search-style 'literal) + (ctrlf-mode +1)) + (setup (:straight anzu) (:option anzu-replace-to-string-separator " → " anzu-cons-mode-line-p nil) -- cgit 1.4.1-21-gabe81