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

Only render the auto-complete menu if it intersects with signature help #5523

Closed

Conversation

kirawi
Copy link
Member

@kirawi kirawi commented Jan 13, 2023

Supersedes #5495 because it required moving Completion into its own layer in the compositor. This one simply checks if the two intersect, and will always defer to the auto-complete menu if they do.

Closes #3821

@kirawi kirawi added A-helix-term Area: Helix term improvements S-waiting-on-review Status: Awaiting review from a maintainer. labels Jan 13, 2023
@kirawi kirawi force-pushed the signature-completion-overlap_2 branch from 1beea06 to 7ccb4c2 Compare January 13, 2023 19:06
@kirawi kirawi added the E-testing-wanted Call for participation: Experimental features suitable for testing label Jan 13, 2023
@kirawi kirawi force-pushed the signature-completion-overlap_2 branch from 7ccb4c2 to cdf81c1 Compare January 13, 2023 20:38
@kirawi kirawi changed the title Signature completion overlap Only render the auto-complete menu if it intersects with signature help Jan 14, 2023
@kirawi
Copy link
Member Author

kirawi commented Jan 22, 2023

One slight issue is that if you delete the retrigger character fast enough, the auto-complete popup will show again for that field. If you delete it after a while, the signature help will pop instead.
Capture

helix-term/src/ui/editor.rs Outdated Show resolved Hide resolved
helix-term/src/ui/editor.rs Outdated Show resolved Hide resolved
@archseer
Copy link
Member

archseer commented Feb 6, 2023

Replaced by #5842 ?

@sudormrfbin
Copy link
Member

#5842 handles overlap of the completion popup and the documentation popup of the currently selected completion (the popup that gets rendered on the right of the completion popup) whereas this PR handles overlap of signature help and completion popup so it's different in scope. Both aim to improvement the popup experience :)

@pascalkuthe pascalkuthe added this to the next milestone Feb 9, 2023
helix-term/src/commands.rs Outdated Show resolved Hide resolved
@kirawi kirawi removed the E-testing-wanted Call for participation: Experimental features suitable for testing label Feb 11, 2023
pascalkuthe added a commit to pascalkuthe/helix that referenced this pull request Mar 31, 2023
@kirawi kirawi closed this Mar 31, 2023
Triton171 pushed a commit to Triton171/helix that referenced this pull request Jun 18, 2023
wes-adams pushed a commit to wes-adams/helix that referenced this pull request Jul 4, 2023
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Function arguments tip covers autocompletion if tip doesn't fit in the upper screen space
5 participants