Watching temporary files #4

Closed
lorensr opened this Issue Oct 2, 2011 · 1 comment

Projects

None yet

2 participants

@lorensr
Contributor
lorensr commented Oct 2, 2011

My text editor creates files of the form [filename]~, and these files are watched by toaster. Could toaster either take an option in toaster.coffee like:

tempfile_regexes = [
  /~$/
  /\.swp$/
  /\.DS_Store$/
  /^#/
]

or just filter those by default?

@arboleya arboleya added a commit that closed this issue Oct 16, 2011
@arboleya adding more accurated filters in order to avoid any file that doesnt …
…end with /*.coffee$/. (closes #4)
8cd1a88
@arboleya arboleya closed this in 8cd1a88 Oct 16, 2011
@arboleya
Owner

This fix will be published in the next patch (current is 0.3.0).

If you wanna use it right now, install from source by:

  1. git clone git://github.com/serpentem/coffee-toaster
  2. cd coffee-toaster; git submodule init; git submodule update
  3. npm link

Instead of adding support for tmp files, I have simply excluded everything else that is not 'filename.coffee', tells me if you find any other problem.

Tks for testing. :)

@arboleya arboleya was assigned Oct 17, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment