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

Auto-insert .class false positive #183

Open
rchl opened this issue May 15, 2023 · 2 comments
Open

Auto-insert .class false positive #183

rchl opened this issue May 15, 2023 · 2 comments

Comments

@rchl
Copy link
Contributor

rchl commented May 15, 2023

Pressing . to auto-insert .class is amazing when it works but there exist various cases where it misfires and prevents from inserting proper code.

For example:

Screen.Recording.2023-05-15.at.13.32.52.mov

Scopes.

Screenshot 2023-05-15 at 13 35 27

It also appears that it's not possible for the user to override this key binding because if I add -punctuation.separator to the context then my custom binding won't trigger but the original one still will. I suppose a workaround might be to disable emmet_auto_id_class and then use custom key binding.

@sergeche
Copy link
Member

OK, thanks, will try to find a solution. I guess it’s save to assume that a dot must be preceded with space character

@rchl
Copy link
Contributor Author

rchl commented May 15, 2023

Except in this case maybe: <div|>

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