NAME
csswatcher - daemon/client for scanning css, less files and build Emacs ac-html completion.
DESCRIPTION
CSS completion generator for emacs ac-html.el.
USAGE
Run as daemon
% csswatcher --daemon
You don't need start in this way, because csswatcher automatically daemonize self. To stop manually:
% csswatcher --stop
Build completions for your project.
The concept of a project is pretty basic like projectile.el use it - just a folder containing special file. Currently git, mercurial and bazaar repos are considered projects by default. If you want to mark a folder manually as a project just create an empty .projectile or .csswatcher file in it.
I home you have no .git in root directory (or home ~/.git), because it may be occasion for full system scanning if you forgot setup project directory.
% touch ~/work/bootstrap/dist/.csswatcher
% csswatcher ~/work/bootstrap/dist/css/bootstrap.min.css
PROJECT: ~/work/bootstrap/dist/
ACSOURCE: ~/.emacs.d/ac-html-csswatcher/completion/9ba471294f1c47ce596177c978b79c95
Above example, show how to parse "~/work/bootstrap/" project directory.
- PROJECT
-
Found project directory for object "~/work/bootstrap/dist/css/bootstrap.min.css"
- ACSOURCE
-
Directory where completion sources located.
File .csswatcher
This file, as like .projectile, .git, etc, used to get project directory. But it olso may have some extra, example:
% cat .csswatcher
# ignore minified css files "min.css"
ignore: min\.css$
# ignore bootstrap css files
ignore: bootstrap.*css$
Another example:
% cat .csswatcher
# ignore all css
ignore: \.css$
# except app.css
use: app\.css
- IGNORE:
-
Regexp for files that be ignored when scanning.
- USE:
-
Regexp for match files that allowed to be parsed. Have higher order than "ignore".
COMMAND LINE PARAMETERS
See
% csswatcher --help
SEE ALSO
https://github.com/osv/ac-html-csswatcher
https://github.com/cheunghy/ac-html
AUTHOR
Olexandr Sydorchuk (olexandr.syd@gmail.com)