liamcain / AutoFileName

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

Autocomplete for language agnostic import statements #112

Closed ridhwaans closed 6 years ago

ridhwaans commented 6 years ago

I love this package, but it only seems to work for html img tags <img src="../|" />
I'd like to see autocomplete support for javascript requires (i.e. var missingPositive = require('./06012018 MissingPositive.js'))

*EDIT: without using ctrl+space. need js selector in user settings for ./

ridhwaans commented 6 years ago

user setting

"auto_complete_triggers":
    [
      {
         "characters": "<",
         "selector": "text.html"
      },
      {
         "characters": "/",
         "selector": "string.quoted.double.html,string.quoted.single.html, source.js"
      }
    ]