March 29, 2018

Rebooting the reboot. #

I never did write up the macro info I was talking about here so here goes.

I type daynumparagraphnum at the end of the “paragraph” for the marker (i.e. today is day 88, so this paragraph is 882), then exit edit mode, then type @x to execute the macro in register ‘x’. The macro itself is bdwa [#](#a^R")^[0i[](){:#a^R"}^[$:w^M which breaks down as follows:

The characters ‘[](){:#axxx}’ insert an anchor tag with the id set to ‘a’ plus the paragraphnum, so <a id='a###' />, which allows the ‘#’ link at the end of the paragraph to navigate to the beginning of the paragraph. #