diff --git a/src/commands/todo_cmds.rs b/src/commands/todo_cmds.rs index 90be423..f1a1f88 100644 --- a/src/commands/todo_cmds.rs +++ b/src/commands/todo_cmds.rs @@ -340,7 +340,18 @@ pub fn show_todo_page( opt.create_option(|o| { o.label(format!("Mark {} complete", count + first_num)) .value(id) - .description(disp.split_once(' ').unwrap_or(("", "")).1) + .description({ + let c = disp.split_once(' ').unwrap_or(("", "")).1; + + if c.len() > 100 { + format!( + "{}...", + c.chars().take(97).collect::() + ) + } else { + c.to_string() + } + }) }); }