Skip to content

Please add support for frontmatter, especially tags #189

@aquatix

Description

@aquatix

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 is

Relevant 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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions