-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto complete class name #6
Comments
I haven't find the tool to use for extracting class names and ids from source code. If you find it, please point here. Maybe we need to implement by ourselves just using regular expression. |
https://www.npmjs.org/package/extract-from-css I think about Perl script that check every N sec., does css file modified or not, and update cache. Same think may be done with javascript and lib "extract-from-css". I'm not good with node, so can say how easy to do this, want to try after multiple stuff dir done. |
I have this idea. Index user's project and get lists of html files, and css files. After user create a file in project dir, add the parsed content to corresponding file in cache dir. Only the first time indexing, it will be lag. Since this lib just parse through regular expression and only recognizes css, we may parse files locally with pure elisp. When using elisp batch mode, it will behaves like command line utility. |
I think this too complex, user must by hand open files css to make index? I think better to create local project dir ".ac-html/" this dir may contain just 2 files html-attributes-complete/global-class and global-id, use projectile, etc to append this directory ".ac-html" search. Yes, pure lisp indexator better :) no dependencies |
No, it just works. User don't need to do anything.
cache dir inside ~/.emacs.d is just like in local project dir. Since it uses md5 hash of project dir name. It just doesn't require use to append .ac-html to .gitignore file. |
Hello, I wrote https://github.com/osv/ac-html-csswatcher for class and id completion, it use external script csswatcher that monitor for changes files and parse files. Currently only .css supported. It require multydir branch with pull #22 Btw, why tests (#20 ) not merged it pretty cover most situation for several different html-stuff sources? |
No description provided.
The text was updated successfully, but these errors were encountered: