Got new plugin idea (idea is based on this plugin), not sure if you will be interested or got time to implement, or if it's even possible.Anyway: Will it be possible to parse css and find out classnames [and maybe ids], then if you cursor is in following position <div class="|"> plugin will bring list of classnames?

Also noticed that currently your plugin shows autocompletion list even if cursor is inside classname or id. I see that sublime doesn't tell you what kind of attribute you are editing, but maybe it is possible to read current string where cursor is and find out if you are editing 'src' or 'href' (I think only these two recuire filenames autocompletion).

pod wrote:Will it be possible to parse css and find out classnames [and maybe ids], then if you cursor is in following position <div class="|"> plugin will bring list of classnames?

It's definitely possible, and actually pretty simple. This would obviously deserve its own plugin though. I actually made something like this for PHP files but I can't seem to find it. It's posted somewhere on the forum...

Unfortunately, I don't have the time to take on another project, I'm already working on too many. I'm sure someone else will step up though to make it.

pod wrote:Also noticed that currently your plugin shows autocompletion list even if cursor is inside classname or id.

This is intentional. AutoFileName has more uses other than just HTML. It's meant to be as versatile as possible. Though it triggers inside ALL strings, you can simply ignore it and it should not get in the way of your normal completions.

pod wrote:Will it be possible to parse css and find out classnames [and maybe ids], then if you cursor is in following position <div class="|"> plugin will bring list of classnames?

It's definitely possible, and actually pretty simple. This would obviously deserve its own plugin though. I actually made something like this for PHP files but I can't seem to find it. It's posted somewhere on the forum...

I haven't really paid much attention to any of my plugins recently and I was bored. So here. Anyway, the plugin is a lot more configurable via settings. I tweaked the behavior so it should feel fluid. I fixed a couple of bugs that have been there for way too long.

Feel free to send me feature requests.

Windows users: feel free to send pull requests since this might be broken for you

Place the caret inside a string and restart Sublime. If both the completions popup and "Slow plugin" dialogs will trigger, Sublime will crash. This is pretty much DOS because it's quite hard to get out of this situation. Have to modify session file.

I know that crash is generally not a plugin's problem and should be reported to jps but plugin should do everything possible to not trigger "slow plugin" dialog.

It's really not about the disk speed (I have SSD too). It happens when there are many calls to some very frequently called callbacks which happens on restoring session with many files. And I'm on i7 so CPU is not that slow either.

Hi, I did change on_query_completions a little and it worked for Windows. Sorry I didn't have much time to check what you are doing there with view.settings(), but if you just need to read settings from autofilename.sublime-settings - why are you not using sublime.load_settings('autofilename.sublime-settings')? There potentially could be other places where you may want to change view.settings() to sublime.load_settings().