I'm using VimWiki for a writing project and for certain sections (like "chapters", contained in sub-directories) I want to create indexes that work similarly to the way VimWiki's diary index works. Unfortunately in reading through the plugin's source I haven't been able to understand how the
VimwikiDiaryGenerateLinks function works in order to replicate it for something similar.
My exact goal is this:
In my vimwiki section index page I want to automatically create links to files that match a pattern...
for all files like:
I want to create a list of links in vimwiki markdown like this:
Sometimes I'll create new
string_xyz789.mkd pages from someplace other than this index file, so I want this index file to keep itself updated automatically (the way VimWiki's "diary" index file automatically lists all the diary entries that exist).
The index page as a whole will be structured somewhat like this:
# Page Title
Some various content... perhaps multiple paragraphs...
## Automatically generated list of links
Other content that I type manually.
...and only the auto-generated list of links should be updated. I need to be able to type content before and after the list as if I'm just editing a normal wiki page.
Does VimWiki provide a solution for this?
If not could you suggest how to approach scripting this myself?