|
|
@ -120,8 +120,11 @@ func filter(e fsnotify.Event) bool {
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Avoid some temp files that vim writes
|
|
|
|
_, fname := filepath.Split(e.Name)
|
|
|
|
if strings.HasSuffix(e.Name, "~") || strings.HasSuffix(e.Name, ".swp") || strings.HasPrefix(e.Name, ".") {
|
|
|
|
|
|
|
|
|
|
|
|
// Avoid some temp files that vim or emacs writes
|
|
|
|
|
|
|
|
if strings.HasSuffix(e.Name, "~") || strings.HasSuffix(e.Name, ".swp") || strings.HasPrefix(fname, ".") ||
|
|
|
|
|
|
|
|
(strings.HasPrefix(fname, "#") && strings.HasSuffix(fname, "#")) {
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|