Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ivy-resume after swiper goes back to the first result #245

Closed
brabalan opened this issue Oct 2, 2015 · 5 comments
Closed

ivy-resume after swiper goes back to the first result #245

brabalan opened this issue Oct 2, 2015 · 5 comments

Comments

@brabalan
Copy link

brabalan commented Oct 2, 2015

When I use ivy-resume after a swiper search, the highlighted result is the first one. Is it possible to resume at the same place where swiper was exit?

(To put this in context, I'm trying to understand how to do the same thing than C-s C-s using swiper.)

@abo-abo abo-abo closed this as completed in 3146501 Oct 2, 2015
@abo-abo
Copy link
Owner

abo-abo commented Oct 2, 2015

Thanks.

@brabalan
Copy link
Author

brabalan commented Oct 7, 2015

I just realized I did not report that this works great now. Thanks!

@cruegge
Copy link

cruegge commented Oct 19, 2015

For some reason, this still does not work for me. It seems as if ivy--preselect-index indeed returns the proper index, but the search still restarts at the top. Minimal example to reproduce the problem is emacs -Q, and then putting

(setf package-load-list '((swiper t))
(package-initialize)
(global-set-key (kbd "C-c s") #'swiper)
(global-set-key (kbd "C-c h") #'ivy-resume)

into the scratch buffer and evaling it.

abo-abo added a commit that referenced this issue Oct 20, 2015
@abo-abo
Copy link
Owner

abo-abo commented Oct 20, 2015

@cruegge Thanks, should be fixed now.

@cruegge
Copy link

cruegge commented Oct 20, 2015

Thanks, works perfectly now.

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

No branches or pull requests

3 participants