codex icon indicating copy to clipboard operation
codex copied to clipboard

`ignore` option for temp files, etc

Open dherman opened this issue 12 years ago • 5 comments

When emacs creates auto-save files like .#index.md, the watcher picks them up immediately and "build" tries to convert them. It would be useful to allow an ignore option to specify globs or regexps for filename patterns to ignore.

Thanks, Dave

dherman avatar May 17 '12 05:05 dherman

Was afraid of that. Recently made some changes to make the watcher x-platform. Will see if I can come up with a better and cross-platform way to do this.

logicalparadox avatar May 17 '12 17:05 logicalparadox

Ok, build out a whitelist of extensions patterns... From the looks of things whitelisted extensions are:

  • .md
  • .jade
  • .styl
  • .js
  • .json
  • .gif
  • .png
  • .jpeg
  • .jpg

Also, ignore hidden files (starting with .) for emacs ;)

Will be watching the data and template folders.

All sound ok, anything I'm missing?

logicalparadox avatar Jul 20 '12 00:07 logicalparadox

Sounds good. I've got some .svg files in my project's assets directory so adding that would be good. Maybe also .ico for favicons.

Oh, that reminds me, there isn't a straightforward way to add assets to the root directory is there… (I'll file a separate bug).

Thanks!

Dave

dherman avatar Jul 20 '12 00:07 dherman

Alright.

I'm working on the next release. Should be ready sometime this weekend. If you have further feature request please let me know!

PS: Thanks for the inspiration to finally get moving on this :)

logicalparadox avatar Jul 20 '12 01:07 logicalparadox

Thanks for working on it! I'll file some more issues that have come to mind.

Dave

dherman avatar Jul 20 '12 05:07 dherman