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

Filter auto complete options #133

Merged
merged 5 commits into from
Mar 15, 2024
Merged

Filter auto complete options #133

merged 5 commits into from
Mar 15, 2024

Conversation

bhou-crto
Copy link
Contributor

Filter the auto-complete options with the to-complete prefix string. This will improve the performance when dynamic options have lots of entries.

@bhou-crto bhou-crto requested a review from zeralight March 12, 2024 13:48
@@ -38,7 +38,15 @@
"executable": "{{.PackageDir}}/bonjour.{{if eq .Os \"windows\"}}bat{{else}}sh{{end}}",
"args": [],
"validArgsCmd": [ "{{.PackageDir}}/auto-complete.{{if eq .Os \"windows\"}}bat{{else}}sh{{end}}" ]
},
{
"name": "saybonjour2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this new command really usef?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, this test command should be deleted. It is intended to cover a different use case, which is removed from this patch.

@bhou-crto bhou-crto merged commit 5fe617f into main Mar 15, 2024
12 checks passed
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.

4 participants