index: add category output

Signed-off-by: Micky Ching <mickyching@gmail.com>