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

Emmet doesn't understand more complex expressions #23521

Open
1 task done
thomasheartman opened this issue Jan 23, 2025 · 0 comments
Open
1 task done

Emmet doesn't understand more complex expressions #23521

thomasheartman opened this issue Jan 23, 2025 · 0 comments
Labels
bug [core label] emmet Emmet tooling support html HTML markup support language An umbrella label for all programming languages syntax behaviors tooling An umbrella label for language tools, linters, formatters, etc

Comments

@thomasheartman
Copy link

Check for existing issues

  • Completed

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:

  <label>labeltext
    <input type="text" attr="x">
    <input type="text" attr="x">
    <input type="text" attr="x">
    <input type="text" attr="x">
    <input type="text" attr="x">
  </label>

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

@JosephTLyons JosephTLyons added html HTML markup support language An umbrella label for all programming languages syntax behaviors tooling An umbrella label for language tools, linters, formatters, etc emmet Emmet tooling support and removed triage labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] emmet Emmet tooling support html HTML markup support language An umbrella label for all programming languages syntax behaviors tooling An umbrella label for language tools, linters, formatters, etc
Projects
None yet
Development

No branches or pull requests

2 participants