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

Completion list positioning enhancements #69

Open
kindermannhubert opened this issue Jan 19, 2022 · 1 comment
Open

Completion list positioning enhancements #69

kindermannhubert opened this issue Jan 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@kindermannhubert
Copy link
Collaborator

Now we allocate an empty space under the current line for displaying the completion list and its items descriptions.
image

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.
So it would look something like this:
image

Possibly it could be configurable but not sure if someone would want to fall back to old behavior.

@kindermannhubert kindermannhubert added the enhancement New feature or request label Mar 13, 2022
@kindermannhubert
Copy link
Collaborator Author

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.
Elsewhere, I don't know.

Maybe @waf has some other idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant