···465465 {
466466 if ids_only {
467467 println!("{}", stack_item.id);
468468+ } else if let Some(parsed) = task::parse(&stack_item.title) {
469469+ println!("{}\t{}", stack_item.id, parsed.content.trim());
468470 } else {
469469- // Pad the id to a fixed width with spaces so the title column lines
470470- // up regardless of the user's tab stops. Width fits up to tsk-9999.
471471- let id = stack_item.id.to_string();
472472- let title = task::parse(&stack_item.title)
473473- .map(|p| p.content.trim().to_string())
474474- .unwrap_or_else(|| stack_item.title.trim().to_string());
475475- println!("{id:<8} {title}");
471471+ println!("{stack_item}");
476472 }
477473 }
478474 Ok(())