Detecting focus? Bullet Threading

As a former Logseq user, I love writing my daily notes in an outline format (basically bunch of collapsible, nested lists).

When a certain topic becomes quite long or deeply nested, then it’s useful to see a trace going back to parent bullets, much like the Bullet Threading plugin in Logseq.

When trying to mimic this, I couldn’t figure out how to detect when the cursor is on a specific line. Pseudoselectors like :active, :focus and :focus-within don’t trigger or only trigger briefly on clicking the line.

Does anyone know if this is possible?

I am not sure but maybe this could help? @zef

Reviving this thread. I'd love to see this functionality. Deepwiki and GPT have failed me. I can't even tell whether TypeScript source code support is required for this. If anybody knows, that'd be great.

You’re close, almost there. Have a chat with a potent LLM and soy can finish the task, although it won’t be possible without a little JS and dom manipulation.

Thank you for the encouragement and pointers! I'll continue with the LLM route.

If you want you could attach your current progress, and i can continue also in parallel to you. Se who will get it right the first & better :wink:
That so i don't need to start from scratch.