HHH - HierarchyHighlightHeadings Theme

Update

  • HHH theme now highlights (grand)parent & (grand)children headings at the same branch.
  • Cursor don’t have to be @ headings (to trigger highlighting). They could be anywhere (inside SB editor).

Add feature: Pinned Headings

A proof-of-concept for Part 2 mentioned in ABC - Adaptive Bread Crumb - #2 by ChenZhu-Xie

another In-Page breadcrumb that shows which branch of the page contains the content you’re editing or viewing. Like Excel’s freeze panes, the script traces the heading chain from the cursor’s text block (parent, grandparent, and so on) up to the top-level heading, and mirrors those headings into the editor’s upper-left corner.

  • Those mirror headings sit visually on top but permit mouse passthrough so the underlying text remains editable. However, this make the In-Page breadcrumb not-navigatable, so one still need some In-Page or Across-Pages Heading Picker to navigate among headers.
  • Because it’s an entire front-end logic, it inherits CodeMirror’s limitations and cannot reach headings that are too distant from the active focus.

TEST

Code

see github.