davidrios / jade-tmbundle

A comprehensive textmate / sublime text bundle for the Jade template language.
https://github.com/davidrios/jade-tmbundle
MIT License
102 stars 31 forks source link

don't work EMMET!!! #58

Closed robotcigan closed 8 years ago

robotcigan commented 9 years ago

Now in jade don't work emmet

screenshot http://joxi.ru/E2pdlMRfnzLy2Y

petsto commented 9 years ago

Awesome job! Just a small issues with latest version... Emet... and autocomplete for simple HTML tags like img, button, input and so on, don't work anymore. Regards!

davidrios commented 9 years ago

This highlighter doesn't have any autocomplete. Are you using some other package to provide autocompletion?

davidrios commented 9 years ago

https://github.com/P233/Jade-Snippets-for-Sublime-Text-2/pull/14

delch commented 9 years ago

Add in your emmet key binding this code: (Preferences → Package Settings → Emmet → Key bindings – User)

[
    {
        "keys": [
            "tab"
        ],
        "command": "expand_abbreviation_by_tab",
        "context": [
            {
                "operand": "source.css, source.sass, source.less, source.scss, source.stylus, source.jade, text.jade, text.slim, text.xml, text.html - source, text.haml, text.scala.html, source string",
                "operator": "equal",
                "match_all": true,
                "key": "selector"
            },
            {
                "operand": "storage.type.templatetag.django",
                "operator": "not_equal",
                "match_all": true,
                "key": "selector"
            },
            {
                "match_all": true,
                "key": "selection_empty"
            },
            {
                "operator": "equal",
                "operand": false,
                "match_all": true,
                "key": "has_next_field"
            },
            {
                "operator": "equal",
                "operand": false,
                "match_all": true,
                "key": "setting.disable_tab_abbreviations"
            },
            {
                "operand": false,
                "operator": "equal",
                "match_all": true,
                "key": "auto_complete_visible"
            },
            {
                "match_all": true,
                "key": "is_abbreviation"
            }
        ]
    },
    {
        "keys": [
            "tab"
        ],
        "command": "expand_abbreviation_by_tab",
        "context": [
            {
                "operand": "source.css, source.sass, source.less, source.scss, source.stylus, source.jade, text.jade, text.slim, text.xml, text.html - source, text.haml, text.scala.html, source string",
                "operator": "equal",
                "match_all": true,
                "key": "selector"
            },
            {
                "operand": "storage.type.templatetag.django",
                "operator": "not_equal",
                "match_all": true,
                "key": "selector"
            },
            {
                "match_all": true,
                "key": "selection_empty"
            },
            {
                "operator": "equal",
                "operand": false,
                "match_all": true,
                "key": "has_next_field"
            },
            {
                "operator": "equal",
                "operand": true,
                "match_all": true,
                "key": "auto_complete_visible"
            },
            {
                "operator": "equal",
                "operand": false,
                "match_all": true,
                "key": "setting.disable_tab_abbreviations_on_auto_complete"
            },
            {
                "match_all": true,
                "key": "is_abbreviation"
            }
        ]
    }
]
delch commented 9 years ago

@davidrios i think @sergeche must do it, right, Sergey ?

davidrios commented 9 years ago

@delch Yeah, I deleted my comment when I realized you were not the maintainer.

davidrios commented 9 years ago

@sergeche I changed the scope for the Jade highlighter from source.jade to text.jade and it seems to be causing some issues with other packages. Could you take a look on that at Emmet?

ecaepsey commented 9 years ago

help pls for windows guys, same issue

davidrios commented 8 years ago

I'm closing this for lack of further feedback and because the problem is not with this package.

sergeche commented 8 years ago

Problem is already solved in Emmet

davidrios commented 8 years ago

@sergeche Thank you.