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

Question concerning swiper-avy #117

Closed
ardpp opened this issue May 23, 2015 · 7 comments
Closed

Question concerning swiper-avy #117

ardpp opened this issue May 23, 2015 · 7 comments

Comments

@ardpp
Copy link

ardpp commented May 23, 2015

I try to use swiper-avy as described here https://github.com/abo-abo/swiper/releases/tag/0.5.0

If I have around 10 matches in swiper and press C-' then as expected keys a or s or d ... are assigned to the matches. When I press one of the keys then the minibuffer becomes active and "Mark set" is written there. I would expect the point to jump to the corresponding match.

Am I doing something wrong?

Thanks,
Andrej

@abo-abo
Copy link
Owner

abo-abo commented May 23, 2015

What's your Emacs version? Can you try to reproduce the bug with only swiper and avy loaded?

@ardpp
Copy link
Author

ardpp commented May 23, 2015

The Emacs version is 24.5.1
Now started emacs with emacs -Q, then loaded swiper and avy
and set the keys by evaluating the following in scratch buffer
(global-set-key (kbd "C-'") 'avy-goto-char-2))
(global-set-key "\C-s" 'swiper)
(global-set-key "\C-r" 'swiper)
still the same behaviour

@abo-abo
Copy link
Owner

abo-abo commented May 23, 2015

I can't reproduce on 24.4.1, 24.5.2 or 25. I'll see if I can make swiper-avy work in an alternative way. Maybe someone else could confirm the bug as well.

@abo-abo
Copy link
Owner

abo-abo commented May 23, 2015

Got it. The problem was the setting of avy-all-windows. Thanks for bringing this up.

@ardpp
Copy link
Author

ardpp commented May 23, 2015

It works as expected now, but only if I do not use
(global-set-key (kbd "C-'") 'avy-goto-char-2)
in avy settings (as you suggested somewhere). Is it possible to have C-' for avy-goto-char-2 as long as it is not used for swiper-avy?

@ardpp
Copy link
Author

ardpp commented May 23, 2015

Have to correct myself unfortunately. At the moment avy in swiper works well when matching candidates are close to each other so that they fit in one window. Then I just have avy acting on matching candidates and then it works as expected. In my opinion it would be good to have avy in the "swiper area" where all the candidates are shown.

If the matching candidates are far away from each other, then I get the sam behaviour as befort, even if I do not use (global-set-key (kbd "C-'") 'avy-goto-char-2)

@ardpp
Copy link
Author

ardpp commented May 24, 2015

I ovelooked that you wanted to jump to "one of the matches visible on screen". That works fine. Please disregard my complaint above.

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

2 participants