We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c679a40 commit d6668eaCopy full SHA for d6668ea
1 file changed
colrev/ops/search.py
@@ -286,9 +286,23 @@ def get_new_search_files(self) -> list[Path]:
286
f
287
for f in files
288
if f not in [s.filename for s in self.review_manager.settings.sources]
289
- and not str(f).endswith("_query.txt")
290
- and not str(f).endswith(".tmp")
+ and not str(f).endswith(
+ (
291
+ "_query.txt",
292
+ ".tmp",
293
+ ".Identifier",
294
+ ".bak",
295
+ ".swp",
296
+ ".swo",
297
+ ".log",
298
+ ".out",
299
+ ".pyc",
300
+ )
301
302
and ".~lock" not in str(f)
303
+ and not f.name.startswith(".")
304
+ and "__pycache__" not in str(f)
305
+ and ".ipynb_checkpoints" not in str(f)
306
]
307
308
return sorted(list(set(files)))
0 commit comments