mirror of https://github.com/docker/compose.git
tilt: ignore a few more vim swap files (#2190)
This commit is contained in:
parent
e3948f6bae
commit
12916b75a2
|
@ -19,7 +19,12 @@ var ephemeralPathMatcher = initEphemeralPathMatcher()
|
||||||
func initEphemeralPathMatcher() model.PathMatcher {
|
func initEphemeralPathMatcher() model.PathMatcher {
|
||||||
golandPatterns := []string{"**/*___jb_old___", "**/*___jb_tmp___", "**/.idea/**"}
|
golandPatterns := []string{"**/*___jb_old___", "**/*___jb_tmp___", "**/.idea/**"}
|
||||||
emacsPatterns := []string{"**/.#*"}
|
emacsPatterns := []string{"**/.#*"}
|
||||||
vimPatterns := []string{"**/4913", "**/*~", "**/.*.swp", "**/.*.swx"}
|
// 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
|
||||||
|
// ignoring .sw? seems dangerous, since things like .swf or .swi exist, but ignoring the first few
|
||||||
|
// seems safe and should catch most cases
|
||||||
|
vimPatterns := []string{"**/4913", "**/*~", "**/.*.swp", "**/.*.swx", "**/.*.swo", "**/.*.swn"}
|
||||||
|
|
||||||
allPatterns := []string{}
|
allPatterns := []string{}
|
||||||
allPatterns = append(allPatterns, golandPatterns...)
|
allPatterns = append(allPatterns, golandPatterns...)
|
||||||
|
|
Loading…
Reference in New Issue