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

Improve UX when completing struct #190

Merged

Conversation

scottming
Copy link
Collaborator

@scottming scottming commented May 29, 2023

Fixes the first part of #182

This PR has two improvements:

The first one is related to 182 issues. Additionally, I don't think we need fuzzy search. For example, if the target is %Document.Lines{}, without fuzzy search, we can simply type %Doc and then press enter or tab for auto-completion. More options will appear automatically and we can filter by typing l. With fuzzy search, maybe we could complete it by typing %Docl, but you need to remember that this module exists in advance. I don't think this experience is good. The current way is already very convenient for me.

The second improvement adds structure documentation, including fields, types and default values. I really like this UI but I'm unsure if you guys like the code implementation too. I'd like to hear your opinions first before adding more tests.

CleanShot.2023-05-29.at.15.23.59.mp4

@scohen
Copy link
Collaborator

scohen commented May 30, 2023

I don't think we need fuzzy search

I gave you an example of where fuzzy search comes in handy. Providing a different example where you don't think it's handy doesn't make your case. I think it's important, and we already have it for other types of completions.

I've looked at this, and it's pretty complicated for what you get. Let's not focus on documentation right now, as that's the lion's share of the complexity here.

@scottming scottming marked this pull request as ready for review May 31, 2023 06:57
@scottming scottming requested a review from scohen May 31, 2023 06:58
@scottming scottming deleted the branch lexical-lsp:main June 1, 2023 01:55
@scottming scottming closed this Jun 1, 2023
@scottming scottming reopened this Jun 1, 2023
@scottming scottming changed the base branch from fix-remote-function-completion-in-pipeline to main June 1, 2023 02:00
@scohen scohen merged commit 50ad0a8 into lexical-lsp:main Jun 1, 2023
@scottming scottming deleted the improve-ux-when-completing-single-module branch April 6, 2024 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants