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

Adding invalid abbreviation character is not forgiving

Open sergeche opened this issue 5 years ago • 6 comments

Putting invalid character right after operator is not forgiving: removing this character won’t restore abbreviation.

Example: .sample>,

sergeche avatar Aug 24 '20 21:08 sergeche

I think im having the same issue and its getting on my nerves.

Do you mean if you were to: Type: table>tr>td, Delete the comma Hit tab Output: table>tr><td></td>

mylesduncanking avatar Sep 16 '20 08:09 mylesduncanking

To get it to work you have to arrow back into the abbreviation, then arrow out then hit tab

mylesduncanking avatar Sep 16 '20 08:09 mylesduncanking

You can run Capture Abbreviation for now to get abbreviation left to your caret until I fix this issue

sergeche avatar Sep 16 '20 08:09 sergeche

Thank you for the response, what is Capture Abbreviation sorry?

mylesduncanking avatar Sep 16 '20 09:09 mylesduncanking

There’s Emmet: Capture Abbreviation action (id: emmet_capture_abbreviation). You can put caret anywhere in editor and run this action, it will try to find abbreviation left to caret and capture it (add underline + display preview, if possible). You can edit abbreviation further or expand it with Tab

sergeche avatar Sep 16 '20 09:09 sergeche

Thank you, i will take a look now

mylesduncanking avatar Sep 16 '20 09:09 mylesduncanking