renerocksai / sublimeless_zk

A note taking app, Markdown editor, and text browser, featuring ID based wiki style links, and #tags, intended for zettelkasten method users. Loaded with tons of features like sophisticated tag search, note transclusion, support for note templates, bibliography support, etc. to make working in your Zettelkasten a joy 😄
GNU General Public License v3.0
196 stars 24 forks source link

ignore note title in insert section number #6

Closed renerocksai closed 6 years ago

renerocksai commented 6 years ago

The "insert section number" function includes the note title as a section heading. (The "insert heading number" function in Sublime ZK does not include the note title as a section heading.)

renerocksai commented 6 years ago

I suspect what you describe is actually a bug in the syntax of Sublime_ZK that I introduced for syntax-coloring YAML headers: A # heading in the 1st line does not get recognized. If you insert an empty line before your first line, you will see the section numbering of your note title.

So to not break with the common expectation that all headings get numbered (would be odd if you didn't know and for instance use a YAML header for your notes and therefore would likely want the 1st heading to be included in the numbering), I will introduce a setting for that: `"ignore_first_heading_in_numbering: false", or something like that.