Skip to content

Commit

Permalink
Ignore emacs backup/swap files by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 authored and ColinDKelley committed Sep 6, 2021
1 parent 67ba230 commit 797eb33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/listen/silencer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class Silencer
| \.swpx
| ^4913
# Emacs backup/swap files
| (?:\.\#.+|\#.+\#)
# Sed temporary files - but without actual words, like 'sedatives'
| (?:^
sed
Expand Down
3 changes: 3 additions & 0 deletions spec/lib/listen/silencer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
# Vim swap files
ignored += %w[foo.swp foo.swx foo.swpx 4913]

# Emacs backup/swap files
ignored += %w[#hello.rb# .#hello.rb]

# sed temp files
ignored += %w[sedq7eVAR sed86w1kB]

Expand Down

0 comments on commit 797eb33

Please sign in to comment.