Gruntfuggly / todo-tree

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

Is possible to link lines instead of comments/text? #622

Closed Miko321 closed 2 years ago

Miko321 commented 2 years ago

Hello, Thank you for this amazing extension! I would like to ask if is possible to "link" lines instead of comments/tags,

I mean something like:

    "todo-tree.highlights.customHighlight": {
        "The desired line": {
        "icon": "fold",
        "iconColour": "red",
        "gutterIcon": "true",
        "type": "tag",
        "foreground": "00000000",
        "background": "00000000",
        },
    },

Similar to what this extension does: https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks I select the line press the hotkey and it "follows" it: image

Gruntfuggly commented 2 years ago

I'm not sure I understand - how would you define the desired line? If it's just by specifying a line number then the extension doesn't really need to do anything - it would just be the same as the bookmark?

Miko321 commented 2 years ago

I have found another extension that illustrates it better: https://marketplace.visualstudio.com/items?itemName=tkcandrade.code-annotation

You right-click the line, then it pops a window, you input the annotation: image

image This way you don't need to input any comment into the source.

I think it would be a new request feature?