-
Notifications
You must be signed in to change notification settings - Fork 66
Please add support for frontmatter, especially tags #189
Copy link
Copy link
Closed
Description
Description
Please support (markdown/yaml) frontmatter in Markdown files, especially parsing of the tags field to be used with WikiFzfTags and such.
I already have syntax highlighting for yaml frontmatter in my wiki.vim/markdown files through https://github.com/aquatix/dotfiles/blob/master/.vim/after/syntax/markdown.vim
Minimal working example
Syntax is like this:
/coffee.md
---
created: 2021-08-30
tags: drink, work, good, life
---
# Why coffee is good
It just isRelevant vimrc config:
let g:wiki_root = '~/phren'
let g:wiki_filetypes = ['md']
let g:wiki_link_extension = '.md'
let g:wiki_link_target_type = 'md'
let g:wiki_tags_format_pattern = '\v%(^|\s)#\zs[^# ]+'
let g:wiki_tags_scan_num_lines = 500
nmap <leader>wf :WikiFzfTags <CR>
nmap <leader>wb :WikiGraphFindBacklinks <CR>
nmap <leader>ft :WikiFzfToc <CR>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels