Fix: Calendar integration if no vinwikilist #290
This commit is contained in:
@@ -512,10 +512,14 @@ endfunction
|
||||
|
||||
function! vimwiki#diary#calendar_sign(day, month, year) abort
|
||||
" 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 month = s:prefix_zero(a:month)
|
||||
let sfile = vimwiki#vars#get_wikilocal('path').vimwiki#vars#get_wikilocal('diary_rel_path').
|
||||
\ a:year.'-'.month.'-'.day.vimwiki#vars#get_wikilocal('ext')
|
||||
let sfile = vimwiki#vars#get_wikilocal('path') . vimwiki#vars#get_wikilocal('diary_rel_path')
|
||||
\ . a:year.'-'.month.'-'.day.vimwiki#vars#get_wikilocal('ext')
|
||||
return filereadable(expand(sfile))
|
||||
endfunction
|
||||
|
||||
|
||||
@@ -3925,6 +3925,8 @@ http://code.google.com/p/vimwiki/issues/list. They may be accessible from
|
||||
https://github.com/vimwiki-backup/vimwiki/issues.
|
||||
|
||||
New:~
|
||||
* Issue #290: Calendar plugin, do not sign if no wiki
|
||||
* Issue #281: Permit `\|` in tables
|
||||
* PR #1128: VimwikiGoto: Support wiki pages with spaces
|
||||
* Feature: Add option to use link Description in default syntax if
|
||||
caption is present. |generated_links_caption|
|
||||
|
||||
Reference in New Issue
Block a user