where tags_tasks.tagid = tags.id
and tags_tasks.taskid = tasks.id
order by tags.name, tasks.id" in
- if rows <> [] then printf "Tags used:\n";
+ if rows <> [] then heading "Tags used";
let prev = ref None in
List.iter (
fun (name, colour, taskid) ->
| Some _ -> ()
);
prev := Some cur;
- printf " #%ld" taskid
+ printf " %s" (string_of_taskid taskid)
) rows;
if !prev <> None then printf "\n";
from tags
where not exists (select 1 from tags_tasks where tagid = tags.id)
order by tags.name" in
- if rows <> [] then printf "Tags not used (delete with 'todo tag-del'):\n";
+ if rows <> [] then heading "Tags not used (delete with 'todo tag-del')";
List.iter (
fun (name, colour) ->
printf " %s\n" (string_of_tag name colour)