Skip to content

Make C-r in swiper move to the previous candidate - #3085

Open
catern wants to merge 1 commit into
abo-abo:masterfrom
catern:master
Open

Make C-r in swiper move to the previous candidate#3085
catern wants to merge 1 commit into
abo-abo:masterfrom
catern:master

Conversation

@catern

@catern catern commented Jul 14, 2026

Copy link
Copy Markdown

Previously C-r in swiper fell through to ivy-reverse-i-search from ivy-minibuffer-map. Bind it to a new command mirroring swiper-C-s, so that C-r moves to the previous search result just as C-s moves to the next one, matching isearch. Like swiper-C-s, it recalls the previous history element when the input is empty. This parallels the C-r binding that swiper-isearch already has (swiper-isearch-C-r).

  • swiper.el (swiper-C-r): New command mirroring swiper-C-s.
    (swiper-map): Bind it to C-r.

Previously C-r in swiper fell through to ivy-reverse-i-search from
ivy-minibuffer-map.  Bind it to a new command mirroring swiper-C-s, so
that C-r moves to the previous search result just as C-s moves to the
next one, matching isearch.  Like swiper-C-s, it recalls the previous
history element when the input is empty.  This parallels the C-r
binding that swiper-isearch already has (swiper-isearch-C-r).

* swiper.el (swiper-C-r): New command mirroring swiper-C-s.
(swiper-map): Bind it to C-r.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant