nova-todo icon indicating copy to clipboard operation
nova-todo copied to clipboard

Highlighting the Tag

Open heathflohre opened this issue 4 years ago • 7 comments

What code should be written in HTML or CSS to highlight the TODO in the sidebar?

heathflohre avatar Dec 10 '20 19:12 heathflohre

After restarting, the comments/notes are showing in the sidebar. Are they supposed to jump to the comment/note of the file when you click on them?

heathflohre avatar Dec 10 '20 20:12 heathflohre

It would be great if it highlighted the line.

heathflohre avatar Dec 10 '20 20:12 heathflohre

Hi @heathflohre. The extension will detect tags, when they are capitalized and ending with a colon. Alternatively, you can enclose the capitalized tag in square brackets.

Eg: "TODO:" or [TODO].

jasonplatts avatar Dec 10 '20 20:12 jasonplatts

If you double click on the tag item in the sidebar, it will open the related file and scroll to its position. In a future update, it will set the cursor position and highlight the line. This is not currently possible with the API Nova makes available.

Thanks for the suggestions. Hope this helps.

jasonplatts avatar Dec 10 '20 20:12 jasonplatts

Hi, this code not work for CSS in Nova 4.3? /* TODO: hhjjhjh */

HazleMike avatar Feb 12 '21 09:02 HazleMike

Ah sorry. Now I've read that the extension can only work with local files. That's why it didn't work. It would be very nice if the extension worked remotely too!

HazleMike avatar Feb 12 '21 09:02 HazleMike

Ah sorry. Now I've read that the extension can only work with local files. That's why it didn't work. It would be very nice if the extension worked remotely too!

No problem @HazleMike. Thanks for letting me know this feature would be helpful.

jasonplatts avatar Feb 12 '21 22:02 jasonplatts