Skip to content

Commit

Permalink
feat: Modify(Data(Any)) -> Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Teajey committed Nov 30, 2023
1 parent 4830865 commit 1d322fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontmatter_file/keeper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ impl From<notify::EventKind> for FsEvent {
};
match event_kind {
EventKind::Modify(ModifyKind::Name(RenameMode::Any)) => Self::Rename,
EventKind::Modify(ModifyKind::Data(DataChange::Content)) => Self::Edit,
EventKind::Modify(ModifyKind::Data(DataChange::Content | DataChange::Any)) => {
Self::Edit
}
EventKind::Remove(RemoveKind::File) => Self::Delete,
EventKind::Create(CreateKind::File) => Self::Create,
EventKind::Access(AccessKind::Close(AccessMode::Write)) => Self::Ignored,
Expand Down

0 comments on commit 1d322fa

Please sign in to comment.