Let's expand how I can call visual replace function

By adding it to a simple leader key. Perhaps SPC r should really be a menu?
This commit is contained in:
Howard Abrams 2022-09-11 22:00:58 -07:00
parent e6d1e06f07
commit ec3d445a65

View file

@ -1186,7 +1186,10 @@ I appreciated the [[https://github.com/benma/visual-regexp.el][visual-regexp pac
(use-package visual-regexp
:bind (("C-c r" . vr/replace)
("C-c q" . vr/query-replace))
:general (:states 'normal "gR" '("replace" . vr/replace)))
:general (:states 'normal "gR" '("replace" . vr/replace))
:config (ha-leader
"r" '("replace" . vr/replace)
"R" '("query replace" . vr/query-replace)))
#+end_src
*** Jump with Avy