atombender / sublime_text_alternative_autocompletion

Adds TextMate-like autocompletion to Sublime Text 2 and 3.
MIT License
147 stars 23 forks source link

conflict with sublime VI model #26

Open TangMonk opened 8 years ago

TangMonk commented 8 years ago

When I use ESC to switch to normal mode, but it complete the words

TangMonk commented 8 years ago

I add follow config, but still not work:

{
        "keys": ["tab"],
        "command": "alternative_autocomplete",
        "context": [{
            "key": "num_selections",
            "operator": "equal",
            "operand": 1
        }, {
            "key": "overlay_visible",
            "operator": "equal",
            "operand": false
        }, {
            "key": "panel_visible",
            "operator": "equal",
            "operand": false
        }, {
            "key": "has_prev_field",
            "operator": "equal",
            "operand": false
        }, {
            "key": "has_next_field",
            "operator": "equal",
            "operand": false
        }, {
            "key": "auto_complete_visible",
            "operator": "equal",
            "operand": false
        }]
    }, {
        "keys": ["shift+tab"],
        "command": "alternative_autocomplete",
        "args": {
            "cycle": "previous"
        },
        "context": [{
            "key": "num_selections",
            "operator": "equal",
            "operand": 1
        }, {
            "key": "overlay_visible",
            "operator": "equal",
            "operand": false
        }, {
            "key": "panel_visible",
            "operator": "equal",
            "operand": false
        }, {
            "key": "has_prev_field",
            "operator": "equal",
            "operand": false
        }, {
            "key": "has_next_field",
            "operator": "equal",
            "operand": false
        }, {
            "key": "auto_complete_visible",
            "operator": "equal",
            "operand": false
        }]
    }