Closed JohnWick95 closed 2 years ago
I don't use isearch, but you should just be able to bind it in isearch-mode-map:
(define-key isearch-mode-map (kbd "<escape>") #'isearch-abort)
Great, I was playing with variations of something like:
(evil-define-key 'normal isearch-mode-map (kbd "<escape>") #'isearch-abort)
Thank you
Hello,
A problem while searching in EVIL using
/
(with isearch) and pressingESC
is that the point doesn't go back to where the search started but pressingCtrl-g
instead ofESC
does send you back. It looks likeESC
is mapped toisearch-cancel
andCtrl-g
is mapped toisearch-abort
.I have tried with many variations from your guide explanations to map
ESC
toisearch-abort
instead ofisearch-cancel
with no success.How can I make
ESC
sendisearch-abort
during a search? I know about theevil-search
module which does the 'correct' thing but lacks the features of isearch which I prefer.