now in any html file you should be able to type ` and get al ist of installed packages. I have only tested it with a local components folder as i am lazy and working in sublimes un documented apis drove me insane.
Known limitations -
Will only work if you have a project open with 1 folders - it currently reads the top folder by default, need to figure out how to make this smarter
It does nothing when it can not find a directory or a folder or something.
No idea if it works with an rc file (i assume it will)
It currently leaves around a ` after the insertion, dove into sublimes documentation again for this, but came up empty handed will keep looking.
Obviously the ` and editing a default settings file is less than idea, need to figure out how to add our own completion handler.
Not very efficient, it hits the file system a lot. We should do the checks for the project folders once on project load (if such an event exists in sublime) then we just have to poll the directory to get the list of projects i was kind of hoping bower kept around an installed packages .json which would mean only opening 1 fd (yay)
Oh an just for completeness sake this is a pass at #13
So
this sort of works. Not very user friendly.
To make it work you have to goto
Sublime text 2 menu -> settings default (user does not seem to work)
find the line that reads
"auto_complete_triggers": [ {"selector": "text.html", "characters": "<"} ],
Edit it to read
"auto_complete_triggers": [ {"selector": "text.html", "characters": "<`"} ],
now in any html file you should be able to type ` and get al ist of installed packages. I have only tested it with a local components folder as i am lazy and working in sublimes un documented apis drove me insane.
Known limitations - Will only work if you have a project open with 1 folders - it currently reads the top folder by default, need to figure out how to make this smarter
It does nothing when it can not find a directory or a folder or something.
No idea if it works with an rc file (i assume it will)
It currently leaves around a ` after the insertion, dove into sublimes documentation again for this, but came up empty handed will keep looking.
Obviously the ` and editing a default settings file is less than idea, need to figure out how to add our own completion handler.
Not very efficient, it hits the file system a lot. We should do the checks for the project folders once on project load (if such an event exists in sublime) then we just have to poll the directory to get the list of projects i was kind of hoping bower kept around an installed packages .json which would mean only opening 1 fd (yay)
Oh an just for completeness sake this is a pass at #13