Skip to content

Commit

Permalink
Ignore Helix temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Aug 15, 2024
1 parent f8ded09 commit 96f266e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 2 additions & 0 deletions components/utils/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/fs_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 96f266e

Please sign in to comment.