Skip to content

Commit 33cb86e

Browse files
Keatsberdandy
authored andcommitted
Ignore Helix temp files
1 parent 26affcf commit 33cb86e

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Fix some of YAML date parsing
1919
- Fix feed generation for languages not working in some cases (it was taking the value from the root of the config for
2020
feed_filenames)
21+
- Ignore `.bck` files in `zola serve`
2122

2223
## 0.19.1 (2024-06-24)
2324

components/utils/src/fs.rs

+2
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ pub fn is_temp_file(path: &Path) -> bool {
200200
x if x.ends_with("jb_bak___") => true,
201201
// vim & jetbrains
202202
x if x.ends_with('~') => true,
203+
// helix
204+
x if x.ends_with("bck") => true,
203205
_ => {
204206
if let Some(filename) = path.file_stem() {
205207
// emacs

src/fs_utils.rs

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ mod tests {
226226
Path::new("hello.html~"),
227227
Path::new("#hello.html"),
228228
Path::new(".index.md.kate-swp"),
229+
Path::new("smtp.md0HlVyu.bck"),
229230
];
230231

231232
for t in test_cases {

0 commit comments

Comments
 (0)