-
Notifications
You must be signed in to change notification settings - Fork 23
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
Completion list positioning enhancements #69
Comments
Not sure if this is possible to do in some reasonable way. We would need to render over already existing output and the question is how to restore it back. There exists alternate buffer but we would need it to contain everything from the main buffer. From what I tested alternate buffer is empty and I don't know if it's possible to get there contents of the main buffer. On Windows, it could probably be done with custom screen buffers - it should be possible to copy content between them. Maybe @waf has some other idea? |
Now we allocate an empty space under the current line for displaying the completion list and its items descriptions.
![image](https://user-images.githubusercontent.com/11704036/150186870-bf661558-bc6d-4745-b7d7-6ab7b6a624d8.png)
We could solve this space wasting by dynamically moving the completion list upwards when it does not have space below the current line. When we have enough space below the behavior would be the same as today.
![image](https://user-images.githubusercontent.com/11704036/150187736-1b6ab89c-739d-4911-aedd-eb5eb81e0d0a.png)
So it would look something like this:
Possibly it could be configurable but not sure if someone would want to fall back to old behavior.
The text was updated successfully, but these errors were encountered: