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

Add call and recenter option under ivy-hydra 'calling' #2945

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dalanicolai
Copy link

I would like a recenter option (like when calling ivy-call-and-recenter), but then combined with 'previous/next line' option.
I think this PR is probably the fastest way to achieve it. Let me know if you are interested and then how to modify it and where
to update the docs, so I can update the PR.

This would be a generalized solution for #2838, and a few other issues, I guess

This would be a generalized solution for abo-abo#2838 I guess
@@ -1515,7 +1519,7 @@ See variable `ivy-recursive-restore' for further information."
(interactive)
(ivy-call)
(with-ivy-window
(recenter-top-bottom)))
Copy link
Author

@dalanicolai dalanicolai Jan 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function does not recenter exclusively but, in the simplest case, alternates between top, center,
and bottom (which is not consistent with its docstring, I think)

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