All work

myHeaders

Hierarchical comment headers you can navigate and fold.

Source on GitLab Sublime Text · MPL-2.0 · v0.7.0
A line comment written in one of myHeaders' level layouts parses into a hierarchy; headerize can also rewrite the comment to match a hierarchy edit. Once in the hierarchy, header_nav jumps to a header and header_fold folds it. ### LEVEL 1 ### # Level 2 Level 0 Level 1 Level 2 Jump Fold

myHeaders turns an ordinary comment into a section header with a consistent layout, optional index numbering, and a place in the file's hierarchy. It then uses that hierarchy for navigation and folding.

Each of the seven header levels is configured separately, and a quick panel lets you jump by path, tag, or regex. It's the same header style I use across all of my Python code.

Line-comment headers at up to seven levels (0 through 6), each with an optional index, form a file's hierarchy. header_nav jumps to a header by position, tree coordinate, tag, index string, or title regex, and header_fold folds a section by the same kinds of target. Command names and forms are quoted from myHeaders' own README. Comments Hierarchy Uses ############### ### LEVEL 1 ### ############### # ------- # Level 2 # ------- Level 0 Level 1 Level 2 levels 0-6 Jump nav [N] absolute position +N / -N relative move depth,place tree spot Match nav `tag_regex` tag match 1.A.ii index string My Title title regex Fold header_fold by section, tag, or cursor-relative position Command palette Headerize Comment HeaderNav Fold Header (current)