1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 21:45:10 +01:00

Parse tags: line

This commit is contained in:
2021-09-01 18:52:16 +02:00
parent 28cdfe7d3a
commit 1b52b1ed7f

6
.vimrc
View File

@@ -448,6 +448,12 @@ let g:wiki_link_target_type = 'md'
" let g:wiki_mappings_use_defaults = 1 " let g:wiki_mappings_use_defaults = 1
"support for #tag style tags instead of :tag: "support for #tag style tags instead of :tag:
let g:wiki_tags_format_pattern = '\v%(^|\s)#\zs[^# ]+' 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 " number of lines from the top to scan for tags
let g:wiki_tags_scan_num_lines = 500 let g:wiki_tags_scan_num_lines = 500
" search through the tags in the wiki " search through the tags in the wiki