Ignore Helix temp files

This commit is contained in:
Vincent Prouillet 2024-07-01 23:23:21 +02:00 committed by Vincent Prouillet
parent f8ded09a28
commit 96f266e3f8
3 changed files with 4 additions and 0 deletions

View file

@ -5,6 +5,7 @@
- Fix some of YAML date parsing
- Fix feed generation for languages not working in some cases (it was taking the value from the root of the config for
feed_filenames)
- Ignore `.bck` files in `zola serve`
## 0.19.1 (2024-06-24)

View file

@ -200,6 +200,8 @@ pub fn is_temp_file(path: &Path) -> bool {
x if x.ends_with("jb_bak___") => true,
// vim & jetbrains
x if x.ends_with('~') => true,
// helix
x if x.ends_with("bck") => true,
_ => {
if let Some(filename) = path.file_stem() {
// emacs

View file

@ -226,6 +226,7 @@ mod tests {
Path::new("hello.html~"),
Path::new("#hello.html"),
Path::new(".index.md.kate-swp"),
Path::new("smtp.md0HlVyu.bck"),
];
for t in test_cases {