Browse Source

Update emacs ignore patterns (#5903)

Currently the emacs ignore patterns include `**/.#*` (lock files), but
doesn't include `**/#*#` (autosave files;
https://www.emacswiki.org/emacs/AutoSave, not to be confused with
`**/*~` backup files which are ignored.)

Add autosave files.
Josh Wilson 3 years ago
parent
commit
6fae6a41f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/watch/ephemeral.go

+ 1 - 1
pkg/watch/ephemeral.go

@@ -18,7 +18,7 @@ var EphemeralPathMatcher = initEphemeralPathMatcher()
 
 func initEphemeralPathMatcher() model.PathMatcher {
 	golandPatterns := []string{"**/*___jb_old___", "**/*___jb_tmp___", "**/.idea/**"}
-	emacsPatterns := []string{"**/.#*"}
+	emacsPatterns := []string{"**/.#*", "**/#*#"}
 	// if .swp is taken (presumably because multiple vims are running in that dir),
 	// vim will go with .swo, .swn, etc, and then even .svz, .svy!
 	// https://github.com/vim/vim/blob/ea781459b9617aa47335061fcc78403495260315/src/memline.c#L5076