From 1b52b1ed7f53006b5b2f89d37c2c864fb8399d84 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Wed, 1 Sep 2021 18:52:16 +0200 Subject: [PATCH] Parse tags: line --- .vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vimrc b/.vimrc index 113c25e..20a8800 100644 --- a/.vimrc +++ b/.vimrc @@ -448,6 +448,12 @@ let g:wiki_link_target_type = 'md' " let g:wiki_mappings_use_defaults = 1 "support for #tag style tags instead of :tag: let g:wiki_tags_format_pattern = '\v%(^|\s)#\zs[^# ]+' +" parse tags in lines that match "tags: keyword1, keyword2" in addition to the default parser: +let g:wiki_tags_parsers = [ + \ g:wiki#tags#default_parser, + \ { 'match': {x -> x =~# '^tags: '}, + \ 'parse': {x -> split(matchstr(x, '^tags:\zs.*'), '[ ,]\+')}} + \ ] " number of lines from the top to scan for tags let g:wiki_tags_scan_num_lines = 500 " search through the tags in the wiki