switch to calver; add g:vimwiki_version; tidy version hardcoding

Setting a global for g:vimwiki_version doesn't seem too egregious, and
lets us reference it cleanly elsewhere.

Removes version header from vimwiki.txt and hardcoding in tagfile
generation.

There's still one instance of that left in test/tag.vader that we should
clean up eventually.
This commit is contained in:
Brennen Bearnes
2022-12-02 14:39:25 -07:00
parent 221377f4fa
commit 0629b39815
5 changed files with 26 additions and 21 deletions
+1 -2
View File
@@ -292,9 +292,8 @@ function! s:write_tags_metadata(metadata) abort
endfor
endfor
call sort(tags, 's:tags_entry_cmp')
" TODO: VimWiki version probably shouldn't be hardcoded here:
let tag_comments = [
\ "!_TAG_PROGRAM_VERSION\t2.6.0",
\ "!_TAG_PROGRAM_VERSION\t" . g:vimwiki_version,
\ "!_TAG_PROGRAM_URL\thttps://github.com/vimwiki/vimwiki",
\ "!_TAG_PROGRAM_NAME\tVimwiki Tags",
\ "!_TAG_PROGRAM_AUTHOR\tVimwiki",