diff --git a/src/main.rs b/src/main.rs index a9bdcf7..c7cf95e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -417,8 +417,8 @@ async fn main() -> Result<()> { } } Some(arg) => { - if arg.len() < CHARACTER_THRESHOLD { - warn!("Note needs at least {CHARACTER_THRESHOLD} characters!"); + if arg.trim().len() < 2 { + warn!("Needs at least 2 characters!"); continue 'repl; } tasks.make_note(arg); diff --git a/src/tasks.rs b/src/tasks.rs index 0ad733c..4eeabee 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -1316,9 +1316,8 @@ impl TasksRelay { let (name, tags) = extract_tags(note.trim()); let format = format!("\"{name}\" with tags [{}]", join_tags(&tags)); let mut prop = - EventBuilder::new(Kind::TextNote, name).tags(tags); - //.filter(|id| self.get_by_id(id).is_some_and(|t| t.is_task())) - //.map(|id| + EventBuilder::new(Kind::TextNote, name) + .tags(tags); let marker = if self.get_current_task().is_some_and(|t| t.is_task()) { MARKER_PROPERTY