aboutsummaryrefslogtreecommitdiff
path: root/my_snippets/markdown.snippets
AgeCommit message (Collapse)Author
2020-04-17fix: time zone info is now shownjdhao
datetime.now() produces a naive datetime object which does not know tzinfo. So the '%z' has no effect. We need to convert it to time zone aware object using `datetime.astimezone()`.
2020-03-30update: improve snippetsjdhao
2020-03-09Add detail snippetjdhao
2020-03-08Update snippetsjdhao
2019-12-22Update Markdown snippetsjdhao
2019-12-21Update meta markdown snippetsjdhao
The original snippet use vim interpolation and the date keeps changing while we are inside the snippet region, which is not desired. According to https://www.youtube.com/watch?v=JJQYwt6Diro, we can use Python interpolation and check if snip.c is empty to see if the interpolation has been finished. If the interpolation has finished (snip.c is empty in this condition), the date will be fixed and does not change when we are inside the snippet region.
2019-12-19Update markdown.snippetsjdhao
2019-12-19Update Markdown front matter snip triggerjdhao
2019-12-18Add markdown header snippetsjdhao
Now we can type h1, h2, ..., h6 and press <Tab> to generate header of corresponding level. It is more intuitive than vim-snippets's default snippets for headers, i.e., sec, ssec, and so on.
2019-12-03Update Markdown snippetsjdhao
2019-08-06update snippetsjdhao
2019-04-27Add Ultisnips snippetsjdhao