Gruntfuggly / todo-tree

Use ripgrep to find TODO tags and display the results in a tree view
Other
1.46k stars 142 forks source link

Show full TODO comment on hover #860

Open CelticMinstrel opened 4 months ago

CelticMinstrel commented 4 months ago

When I hover over an entry in the TODO list, it only shows me the file and line number of that comment.

image

It would be great if it could also show the full text of the comment.

Ansa211 commented 3 months ago

This should be possible to configure via

    "todo-tree.tree.tooltipFormat": "${filename}:${line} ${before}${tag}${after}",

in your user settings file.

CelticMinstrel commented 3 months ago

That worked, but I couldn't find any documentation about the variables that can be used there, and I think it would make more sense for the default to show the actual comment as well.

I don't mind whether you close this or turn it into a "please document it better" issue.