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-posframe now minor-mode #43
Conversation
by add ivy-posframe-display-functions
I do not think it is a good idea, two reason:
|
If we want to a safe minor-mode, a simply way is that create ivy-posframe-minibuffer-map and advice ivy-read to override ivy-minibuffer-map |
Solved |
Squashed tmp commit. Solved overwrite variable issue. But this approach to advice is vulnerable to changes in ivy, where our job is to add just one more function that references The commit history of this PR is recorded along with the reason for all the changes, but it is a little too much, so please tell me if you want to squash it. |
this piece is not look good, what about use macro, i do not suggest use eval in this package
|
by the way, point-bottom-left-corner is not function, while variable is named function alist |
|
suggest use posframe-poshandler-point-bottom-left-corner instead, part function name is not valid function name |
please deal this eval
|
add ivy-posframe-enable as alias of ivy-posframe-mode |
Fixed. |
ok, good job! |
@conao3 I have simplify code a lot, so suggest pull newest code before hack, by the way , add your info to ivy-posframe.el's head |
OK. In what role do I add?
|
ok |
Did it. Thanks! |
Yesterday I made another package related to posframe. The package uses minor mode and can be safely turned on and off.
I used that experience to redefine ivy-posframe as a minor mode using the same mechanism.
I changed a lot of code, so it would be helpful if you could check if it works in your environment.
As noted in the README, this variable is used for configuration.
And if you have changed the variable for ivy, delete that line.
Then turn on
ivy-posframe-mode
, test it, and turn off it.