jasonplatts / nova-todo

A Panic Nova extension for todo and fixme management.
https://extensions.panic.com/extensions/jasonplatts/jasonplatts.TODO/
MIT License
29 stars 7 forks source link

Highlighting the Tag #12

Open heathflohre opened 3 years ago

heathflohre commented 3 years ago

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

heathflohre commented 3 years ago

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 commented 3 years ago

It would be great if it highlighted the line.

jasonplatts commented 3 years ago

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 commented 3 years ago

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.

HazleMike commented 3 years ago

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

HazleMike commented 3 years ago

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!

jasonplatts commented 3 years ago

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.