From: Steve Francia Date: Tue, 22 Dec 2015 00:46:12 +0000 (-0500) Subject: Ignore temp files created by IntelliJ when saving X-Git-Tag: v0.16~478 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=277425badac8a3397e6c6b4964f4480d71452f16;p=brevno-suite%2Fhugo Ignore temp files created by IntelliJ when saving --- diff --git a/commands/hugo.go b/commands/hugo.go index 89e1094c..c0a2dff4 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -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 }