Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Unexpected autocomplete inside a <li> tag #224

Open
mossarelli opened this issue Nov 22, 2016 · 1 comment
Open

Unexpected autocomplete inside a <li> tag #224

mossarelli opened this issue Nov 22, 2016 · 1 comment

Comments

@mossarelli
Copy link

mossarelli commented Nov 22, 2016

Using Atom 1.12.4, autocomplete-snippets 1.11.0 and snippets 1.0.4

This is the custom snippet:

'.text.html.basic':
  'hyperlink':
    'prefix': 'a'
    'body': '<a href="#$1" class="underline">$2</a>$3'

When using a outside li, the autocomplete makes the snippet "hyperlink". When using it inside li, it wants to use a snippet called "anchor" which is not defined as custom.
The picture below shows the issue:
li

I've searched the issues and there's only one other issue resembling this, but it's not for HTML.

@mossarelli
Copy link
Author

mossarelli commented Nov 30, 2016

Solved by changing the name of the snippet from 'hyperlink' to 'custom a'.

Is there a name conflict error with the word hyperlink?

Please clarify in the documentation, what names for snippets can be used and can't.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant