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

C-c C-o goes directly to match instead of occur buffer in ivy-imenu-anywhere #40

Open
unhammer opened this issue Nov 22, 2017 · 4 comments

Comments

@unhammer
Copy link

(Originally posted at abo-abo/swiper#1306 )

If I do M-x ivy-imenu-anywhere and hit C-c C-o, it will go to the match (as if I'd hit enter), instead of opening the occur buffer (the occur buffer is still opened, but "behind" the buffer with the match).

@vspinu
Copy link
Owner

vspinu commented Nov 22, 2017

I don't think this is specific to imenu-anywhere. It does a tiny bit more than replacing completing-read-function for the duration of the call. I hope @abo-abo could tell more about why ivy-occur (C-c C-o) fails in that situation.

@abo-abo
Copy link

abo-abo commented Nov 23, 2017

OK, I see the issue now. Using just completing-read-function won't work with ivy-occur - ivy-read needs to be called directly (to pass the action parameter).

@vspinu
Copy link
Owner

vspinu commented Nov 23, 2017

Thanks Oleh. So, is there anything I can do on imenu-anywhere side at the moment?

@abo-abo
Copy link

abo-abo commented Nov 23, 2017

If it's possible, try to use ivy-read instead of completing-read-function (when ivy-mode is on).
See counsel-imenu: it works with ivy-occur because it passes the :action parameter to ivy-read.

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