otovo / htmx-tags

HTMX Tag completion for VSCode
Apache License 2.0
43 stars 8 forks source link

add file type association #1

Open RavenSp opened 1 year ago

RavenSp commented 1 year ago

Hello! Thanks for the great extension! Can you please tell me how can I add the django-html file association?

jonesnc commented 1 year ago

I'm also wondering if this would be possible. I use the Django extension, which adds the django-html and django-txt file types. The htmx-tags extension only supports the html file type.

I wonder if we could add these two file types to the contributes object in the package.json file.

RadekPelikan commented 11 months ago

I don't know how Tailwind CSS IntelliSense does it, but it would be cool to modify it.

{
    "htmxTags.includeLanguages": {
        "plaintext": [
            "astro",
            "html",
            "jsx",
            "tsx"
        ]
    },
}

And also add the ability to select between available strings, for example hx-swap has a bunch of different ways go be swapped. So the developer just would be able to select between innerHTML, outerHTML, afterbegin, beforebegin, beforeend, afterend, delete, none. This also applies to the different functionalities.

klette commented 11 months ago

Hi all! Sorry about the lack of response here. Currently on parental leave so I've taken a bit of a pause from tech work. I'll look into this as soon as I can :-)

tksrc commented 11 months ago

+1. I also don't get the auto completions when the file type is django-html.

Something like this would be nice:

https://github.com/tailwindlabs/tailwindcss-intellisense/blob/master/packages/vscode-tailwindcss/package.json#L145