sublime-text-plugin icon indicating copy to clipboard operation
sublime-text-plugin copied to clipboard

Auto-insert `.class` false positive

Open rchl opened this issue 2 years ago • 2 comments

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:

https://github.com/emmetio/sublime-text-plugin/assets/153197/2c89596c-893f-4ba4-8751-f615db137d77

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.

rchl avatar May 15 '23 11:05 rchl

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

sergeche avatar May 15 '23 13:05 sergeche

Except in this case maybe: <div|>

rchl avatar May 15 '23 13:05 rchl