Plugin PoC: Zoomable blocks

Created a first working PoC of editable zoomed blocks. It is ‘working’ in concept, despite the Frankenstein code, but clearly very buggy. Might not be the best approach either, but it doesn’t require a tag/modification of Markdown.

Approach:

  1. Focus a block and record the position (block start/end)
  2. Editing a block uses this position.
  3. If main page (main panel) is edited and block position is shifted, the side panel is synced (checking for changes every 5 seconds)
  4. If when editing the content at location doesn’t match what’s currently in side panel, I look to see if it has been moved to the next 100 chars (arbitrary) and update if found again
  5. (moving between pages is not considered yet)

output