Plugin for user-friendly task visualization

Hello all!

I’m trying to make Obsidian a more suitable application for task management, so I want to make a plugin with several facilities in that regard.

The first I want to make is a feature that, for a task, shows how many days passed from creation (or from creation date to finish date). I managed to do it using decorations. So, in my notes I see something like:

  • Mi note :heavy_plus_sign:2024-11-19 (created 2 days ago) ← the text between parenthesis is created dynamically

The second is to hide the dates when not editing the line (the line does not have .cm-active class). This I have not been able to do. I fail to understand CodeMirror API enough to plan how to do it. I’ve been able to get the text of each line, but not the dom for each line.

So, for the previous task, I’d like to see:

  • Mi note (created 2 days ago) ← the text between parenthesis is created dynamically, the date is hidden when not editing the line

Could you please help me?

Thank youy all! :slight_smile: