Fix: Calendar integration if no vinwikilist #290

This commit is contained in:
Tinmarino
2021-06-11 10:57:56 -04:00
parent 45c89ebca4
commit c4e78fe310
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -512,10 +512,14 @@ endfunction
function! vimwiki#diary#calendar_sign(day, month, year) abort function! vimwiki#diary#calendar_sign(day, month, year) abort
" Callback function for Calendar.vim " Callback function for Calendar.vim
" Clause: no wiki no sign #290
if len(g:vimwiki_list) <= 0
return
endif
let day = s:prefix_zero(a:day) let day = s:prefix_zero(a:day)
let month = s:prefix_zero(a:month) let month = s:prefix_zero(a:month)
let sfile = vimwiki#vars#get_wikilocal('path').vimwiki#vars#get_wikilocal('diary_rel_path'). let sfile = vimwiki#vars#get_wikilocal('path') . vimwiki#vars#get_wikilocal('diary_rel_path')
\ a:year.'-'.month.'-'.day.vimwiki#vars#get_wikilocal('ext') \ . a:year.'-'.month.'-'.day.vimwiki#vars#get_wikilocal('ext')
return filereadable(expand(sfile)) return filereadable(expand(sfile))
endfunction endfunction
+2
View File
@@ -3925,6 +3925,8 @@ http://code.google.com/p/vimwiki/issues/list. They may be accessible from
https://github.com/vimwiki-backup/vimwiki/issues. https://github.com/vimwiki-backup/vimwiki/issues.
New:~ New:~
* Issue #290: Calendar plugin, do not sign if no wiki
* Issue #281: Permit `\|` in tables
* PR #1128: VimwikiGoto: Support wiki pages with spaces * PR #1128: VimwikiGoto: Support wiki pages with spaces
* Feature: Add option to use link Description in default syntax if * Feature: Add option to use link Description in default syntax if
caption is present. |generated_links_caption| caption is present. |generated_links_caption|