You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thomasheartman opened this issue
Jan 23, 2025
· 0 comments
Labels
bug[core label]emmetEmmet tooling supporthtmlHTML markup supportlanguageAn umbrella label for all programming languages syntax behaviorstoolingAn umbrella label for language tools, linters, formatters, etc
I've been using Emmet when working with react, but found that there's a few things it either doesn't understand at all, or needs to be tricked into understanding. Specifically, this appears to be things such as repeatition, attributes, and text content.
One example that combines all of the bits that Zed/Emmet doesn't seem to understand is this: label{labeltext}>input[attr=x]*5
On the simpler side, I can't make p{text} trigger reliably. Sometimes it's recognized, but it's never immediate, and I don't understand when the option shows up. Even if I try to force the completion, it doesn't always do something.
For attributes, they seem to work fine on single elements, but once I try adding attributes to a nested element, I can't make it expand. For instance, div>article[x=y] doesn't seem to do anything for me.
Likewise, the repetition/multiplication operator works on single elements, but I can't make it work for nested elements: div>article*2
I've seen other Emmet issues here, so I assume this is where these issues go. If I'm wrong: I'm very sorry. Please point me to the right place if you know where it is.
bug[core label]emmetEmmet tooling supporthtmlHTML markup supportlanguageAn umbrella label for all programming languages syntax behaviorstoolingAn umbrella label for language tools, linters, formatters, etc
Check for existing issues
Describe the bug / provide steps to reproduce it
I've been using Emmet when working with react, but found that there's a few things it either doesn't understand at all, or needs to be tricked into understanding. Specifically, this appears to be things such as repeatition, attributes, and text content.
One example that combines all of the bits that Zed/Emmet doesn't seem to understand is this:
label{labeltext}>input[attr=x]*5
This should expand into:
But Zed doesn't understand what's going on.
On the simpler side, I can't make
p{text}
trigger reliably. Sometimes it's recognized, but it's never immediate, and I don't understand when the option shows up. Even if I try to force the completion, it doesn't always do something.For attributes, they seem to work fine on single elements, but once I try adding attributes to a nested element, I can't make it expand. For instance,
div>article[x=y]
doesn't seem to do anything for me.Likewise, the repetition/multiplication operator works on single elements, but I can't make it work for nested elements:
div>article*2
I've seen other Emmet issues here, so I assume this is where these issues go. If I'm wrong: I'm very sorry. Please point me to the right place if you know where it is.
Thanks!
Zed Version and System Specs
Zed: v0.170.1 (Zed)
OS: macOS 14.6.1
Memory: 16 GiB
Architecture: aarch64
If applicable, add screenshots or screencasts of the incorrect state / behavior
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: