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

Support completion for keys of a hash table #174

Open
gzqx opened this issue Mar 17, 2024 · 1 comment
Open

Support completion for keys of a hash table #174

gzqx opened this issue Mar 17, 2024 · 1 comment

Comments

@gzqx
Copy link

gzqx commented Mar 17, 2024

Thank you for this wonderful project. I enjoy using it for quite some time.

However, I noticed that it seems to lack the ability to do semantic completion for:

If I have a hash table

%b={
	"apple"=>"good",
	"orange"=> "bad",
}
$a=\%b

It seems that it cannot auto-complete for neither $a->{ nor %b{, which IMHO is possible and would be really helpful.

I have not fully checked the document and code, so if the feature is already included I sincerely apologize in advance.

@FractalBoy
Copy link
Owner

This is difficult to do for the same reason it's difficult to know what methods are available on a variable.

We could collect all hash keys found in the document and offer those for auto complete but it's impossible to know what the keys are across files.

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

No branches or pull requests

2 participants