Skip to content

Commit

Permalink
ignore kate-swp files (#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
selfisekai authored Nov 3, 2023
1 parent d3cab30 commit 2e3fe2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/utils/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ pub fn is_temp_file(path: &Path) -> bool {
match ext {
Some(ex) => match ex.to_str().unwrap() {
"swp" | "swx" | "tmp" | ".DS_STORE" | ".DS_Store" => true,
// kate
"kate-swp" => true,
// jetbrains IDE
x if x.ends_with("jb_old___") => true,
x if x.ends_with("jb_tmp___") => true,
Expand Down
1 change: 1 addition & 0 deletions src/cmd/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ mod tests {
Path::new("hello.html.__jb_bak___"),
Path::new("hello.html~"),
Path::new("#hello.html"),
Path::new(".index.md.kate-swp"),
];

for t in test_cases {
Expand Down

0 comments on commit 2e3fe2d

Please sign in to comment.