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-complete tries to complete absolutely every word #32

Open
krishunt opened this issue Feb 12, 2021 · 10 comments
Open

Auto-complete tries to complete absolutely every word #32

krishunt opened this issue Feb 12, 2021 · 10 comments
Labels
enhancement New feature or request

Comments

@krishunt
Copy link

When auto-complete is turned on, Emmet tries to complete every single word I type, and it's very annoying because the popups never go away.

Emmet Auto Complete

The only workaround I've found is to disable auto-complete entirely, and then manually auto-complete with a keyboard shortcut. But this is obviously an undesirable solution. Can auto-complete be set to only suggest auto-completing recognized keywords?

@krishunt krishunt added the enhancement New feature or request label Feb 12, 2021
@sergeche
Copy link
Member

Yes, will add this option. On the other side, in JSX context you would expect the same behaviour as above since it’s a perfectly valid React component name

@davidbdyer
Copy link

davidbdyer commented Oct 19, 2021

I also have this complaint. I had to disable emmet to write a SASS file.

@arghyabiswas1
Copy link

Same here. Wish this could be fixed.

@hrvstr
Copy link

hrvstr commented Jan 10, 2023

Any updates on this issue? It's been almost two years!

@davidbdyer
Copy link

Doesn't look like it. The only edit I see in the code is to add support for another language. Looks like they don't care about Nova. To be honest Panic shouldn't be leaving some of these make or break plugs up to third parties. Their JS support sadly is sub par to VS Codes.

@hrvstr
Copy link

hrvstr commented Jan 11, 2023

Exactly, I send a mail to Panic yesterday asking them about this issue. Having Nova without proper Emmet support is kind of pointless IMO.

@sergeche
Copy link
Member

Unfortunately, Nova has a very limited API, compared to VSCode or Sublime Text. When I developed this extension, it was really hard to implement completions with preview as in other editors. And I sent my suggestions to Panic, don’t know if they were implemented already (my Nova license has expired, can’t try updated API).

The official solution for JS/JSX for Emmet is to use < prefix for Emmet completions. Here’s how it works in Sublime Text:

Screen.Recording.2023-01-11.at.12.41.40.mov

In Nova, < symbol can’t trigger suggestions, as well as any following characters won’t trigger it. So there’s not much I can do with it to provide better UX for JSX

@hrvstr
Copy link

hrvstr commented Jan 12, 2023

Thank you for your reply and for creating this extension in the first place.

You can request a free license (and renew it every year) as an extension developer. See this blog post for all the details: https://panic.com/blog/free-copy-of-nova-for-extension-developers/

I am not sure about the API but I think I've seen a couple of enhancements in the release notes here: https://nova.app/releases/

I would really love to see some improvements here because Nova has the potential to be an awesome editor but I can't use it without Emmet. I will post here once I hopefully get a reply from Panic.

Bildschirmaufnahme.2023-01-12.um.10.04.37.mov

@rupl
Copy link

rupl commented Nov 5, 2024

Could the mass-autocomplete possibly be disabled until a - character is entered?

For example if I type faketag I definitely don't expect that to autocomplete to an element. However once a - character is encountered, this is officially a custom element since default HTML tags don't use the dash. I think catering to JSX is detrimental. As others have said, basically makes the plugin unusable for the people using web standards.

<!-- no expansion for random words -->
faketag

<!-- expand known elements in HTML spec -->
p <p></p>
ul <ul></ul>
li <li></li>

<!-- also expand once dash is typed -->
my-element <my-element></my-element>

@sergeche
Copy link
Member

sergeche commented Nov 5, 2024

I’ll try to figure out if it’s possible to filter completions somehow. At the time when extention was written, Nova API was very limited. Maybe there are new methods to available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants