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

Interpolation Bypasses Minimum Prefix Length #11

Open
garrett-hopper opened this issue Nov 18, 2019 · 0 comments
Open

Interpolation Bypasses Minimum Prefix Length #11

garrett-hopper opened this issue Nov 18, 2019 · 0 comments

Comments

@garrett-hopper
Copy link

Is there a reason interpolation bypasses the minimum prefix length?

(`(interpolation . ,_) (cons (car (last (split-string (nth 1 context) "\\."))) t))

It seems to be behaving strangely with the new 0.12 syntax. Perhaps in the past it made sense to start completing as soon as "${ was typed, however now with 0.12 it's strange to show completions as soon as [ is typed for variable assignment. (variable = [ starts showing all completions)

I propose changing it to:

         (`(interpolation . ,_)
          ;; (cons (car (last (split-string (nth 1 context) "\\."))) t)
          (car (last (split-string (nth 1 context) "\\.")))
          )
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

1 participant