Ignore temp files created by IntelliJ when saving
authorSteve Francia <steve.francia@gmail.com>
Tue, 22 Dec 2015 00:46:12 +0000 (19:46 -0500)
committerSteve Francia <steve.francia@gmail.com>
Wed, 23 Dec 2015 22:45:39 +0000 (17:45 -0500)
commands/hugo.go

index 89e1094c3b99a142529d68d913e4480bf13775e3..c0a2dff4b6d7099f6d9a8172d943f8623f2b27d0 100644 (file)
@@ -566,7 +566,7 @@ func NewWatcher(port int) error {
 
                                for _, ev := range evs {
                                        ext := filepath.Ext(ev.Name)
-                                       istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream")
+                                       istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___")|| strings.HasSuffix(ext, "jb_bak___")
                                        if istemp {
                                                continue
                                        }