diff --git a/CHANGELOG.mg b/CHANGELOG.mg new file mode 100644 index 0000000..72bceb8 --- /dev/null +++ b/CHANGELOG.mg @@ -0,0 +1,5 @@ +# CHANGELOG + +## v0.1.1 + +- fix: demote zettel with id but no title from error to warn diff --git a/Cargo.lock b/Cargo.lock index fdc8bdc..2130c55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -173,7 +173,7 @@ checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" [[package]] name = "folgezettel" -version = "0.1.0" +version = "0.1.1" dependencies = [ "camino", "clap", diff --git a/Cargo.toml b/Cargo.toml index 8e7e210..6918bbc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "folgezettel" -version = "0.1.0" +version = "0.1.1" edition = "2024" description = "Index Folgezettel identifiers from note files" readme = "README.md" diff --git a/src/error.rs b/src/error.rs index 83aab77..df1a225 100644 --- a/src/error.rs +++ b/src/error.rs @@ -96,11 +96,15 @@ impl Display for DiagnosticSeverity { impl Diagnostic { pub fn severity(&self) -> DiagnosticSeverity { match self { + Diagnostic::InvalidFileName { + error: ParseFileNameError::MissingTitleSeparator | ParseFileNameError::EmptyTitle, + .. + } + | Diagnostic::MissingParent { .. } => DiagnosticSeverity::Warning, Diagnostic::InvalidFileName { .. } | Diagnostic::DuplicateId { .. } => { DiagnosticSeverity::Error } Diagnostic::NonZettelFile { .. } => DiagnosticSeverity::Info, - Diagnostic::MissingParent { .. } => DiagnosticSeverity::Warning, } } }