-
Notifications
You must be signed in to change notification settings - Fork 87
Preserve window configuration #321
Preserve window configuration #321
Conversation
To work around this problem I've been using advice:
I'm concerned that using |
@duncanburke You're right when you say that |
Alright, I've managed to replicate it:
That consistently results in a window existing when |
It does seem like the core functions for reading from the minibuffer are actively restoring the window configuration after the mini buffer closes, but I'm not yet comfortable with how this works. I'm fine including this functionality, but I'd like to hide it behind a user option until I understand it better. In other words, if you want to add this as an option (default off), I'll accept it and revisit the design later. |
@duncanburke Thanks for the example. I tried it with your advices and And I tried it with my PR and So I think that the question is not how to perform the save/restoration (with |
@justbur I made the restoration optional (and disabled by default). Fell free to change the option name or modify its documentation string. |
Thank you @fredericgiquel. Unfortunately, this now puts you over 15 lines, so I will need to wait for your copyright assignment to merge the change. Please let me know when you complete that. |
@justbur The copyright assignment process is complete. I received the fully signed PDF. Do I have to do anything else? |
No, thank you @fredericgiquel |
The idea is to save current window configuration before which-key window is shown and to restore it after which-key window is hidden.
Now, when replaying the second illustration of the issue :