Skip to content

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

Open
dalanicolai wants to merge 1 commit intoabo-abo:masterfrom
dalanicolai:add-call-and-recenter-option-under-hydra-calling
Open

Add call and recenter option under ivy-hydra 'calling'#2945
dalanicolai wants to merge 1 commit intoabo-abo:masterfrom
dalanicolai:add-call-and-recenter-option-under-hydra-calling

Conversation

@dalanicolai
Copy link
Copy Markdown

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
Comment thread ivy.el
(interactive)
(ivy-call)
(with-ivy-window
(recenter-top-bottom)))
Copy link
Copy Markdown
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