Alexander-Miller / treemacs

GNU General Public License v3.0
2.12k stars 156 forks source link

Ignoring nonstandard backup files #1095

Open arensb opened 8 months ago

arensb commented 8 months ago

treemacs--std-ignore-file-predicate has a long list of checks to determine whether a file should be ignored. One of them is to see whether it ends in ~, i.e., it's a backup file.

Emacs allows people to customize backup file names, and treemacs--std-ignore-file-predicate's test fails when someone uses a nonstandard extension like .bak for backup files. Thankfully, Emacs includes the backup-file-name-p function to test whether something is a backup filename. It's a simple matter of replacing (eq ?~ last) with (backup-file-name-p ,file).

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues).