In large C files I use bookmarks to organize code in sections marked by conments that describe what the cose does.
Lately I started to write such comments in markdown, so that I get something similar to literate haskell but in C.
However the bookmarks set at the beginning of each section are not preserved when I get changes from the git repository that other colleagues committed.
Given that these bookmarks are always marked by a new markdown header in a comment I'd like to have them automatically detected on file open.
That is: if the line match a regex, but a bookmark there.
+1 for this! My use case is: bookmark anything matching /^h\d+./, basically for editing Redmine wiki markup.
github-comments@lists.geany.org