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

autocomplete box doesn't suggest previously used attributes (HTML Syntax) #118

Closed
FichteFoll opened this issue Apr 15, 2015 · 4 comments
Closed

Comments

@FichteFoll
Copy link
Contributor

From @bzx on April 15, 2015 11:21

Whenever I use attributes like "data-*" or "placeholder" in HTML documents, they don't get remembered so when I want to use them again in the same document, the suggestion box doesn't display them. It used to work fine in ST2, now in ST3 it's just not there.

I am not sure if there's a special setting for autocomplete, but I couldn't find it... so if I'm missing some special setting, please let me know what it is.

ST2 screenshot
st2

ST3 screenshot
st3

Copied from original issue: sublimehq/sublime_text#799

@FichteFoll
Copy link
Contributor Author

They are actively exlcuded from the completions via Packages/HTML/html_completions.py, which provides the context-aware HTML completions in the first place.

You can fix this locally by installing PackageResourceViewer, running the "Open Resource" command, browsing HTML/html_completions.py and then replacing line 137 with

return (completion_list, sublime.INHIBIT_EXPLICIT_COMPLETIONS)

(that is, no sublime.INHIBIT_WORD_COMPLETIONS).

Downside: If this file receives updates in any future build you will not receive them since you are overriding the file.

@bzx
Copy link

bzx commented Apr 15, 2015

Thank you!

@FichteFoll
Copy link
Contributor Author

Update: for the same reason that words in the buffer are not displayed, completions or snippets are not either.

@FichteFoll
Copy link
Contributor Author

Closing this in order to clean up this repository. If you encounter this and the issue still exists in the latest ST build, please open a new issue at https://github.com/sublimehq/Packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants