liamcain / AutoFileName

Sublime Text plugin that autocompletes filenames
514 stars 78 forks source link

Stop forcing Sublime Text to show the auto completion when between quotes "" #106

Open evandrocoan opened 7 years ago

evandrocoan commented 7 years ago

I set the setting "afn_use_keybinding" to true:

    // If you don't like having filenames flood the default autocompletions,
    // you can set the plugin to only activate with a keybinding.
    // If you set this to true, add the following to your user-keybindings:
    //
    // { "keys": ["whatever"], "command": "afn_show_filenames",
    //    "context":
    //  [
    //      { "key": "afn_use_keybinding", "operator": "equal", "operand": true }
    //  ]
    // }
    //
    "afn_use_keybinding": true

However every time I put the cursor between quotes the autocompletion pops up:

2

On my settings there is only this set for auto_complete_with_fields:

    "autoIndent": true,
    "auto_complete": true,
    "auto_complete_cycle": true,
    "auto_complete_delay": 0,
    "auto_complete_selector": "source, text",
    "auto_complete_triggers":
    [
        {
            "characters": "<",
            "selector": "text.html"
        },
        {
            "characters": "\\",
            "selector": "text.tex.latex"
        }
    ],
    "auto_complete_with_fields": true,

I am on Sublime Text build 3114, windows 10.

This is what the Sublime Text console outputs when I ran the animated gif:

chr evt: " (0x22)
chr evt: " (0x22)
key evt: left
command: move {"by": "characters", "forward": false}
key evt: left
command: move {"by": "characters", "forward": false}
key evt: right
command: move {"by": "characters", "forward": true}
key evt: left
command: move {"by": "characters", "forward": false}
key evt: right
command: move {"by": "characters", "forward": true}
key evt: right
command: move {"by": "characters", "forward": true}
key evt: left
command: move {"by": "characters", "forward": false}