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.
This commit is contained in:
Josh Wilson 2022-07-26 08:57:40 -05:00 committed by Milas Bowman
parent dd5ea044bb
commit 6fae6a41f9

View File

@ -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