qqzsxyz / vimwiki

Automatically exported from code.google.com/p/vimwiki
0 stars 0 forks source link

VimwikiDiaryGenerateLinks no longer called automatically #311

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. <leader>w<leader>w to open an empty new diary page
2. <Backspace> to return to the diary index
3. No new diary link is created for that day.

What is the expected output? What do you see instead?
VimiwikiDiaryGenerateLinks used to be called automatically (at least to 
generate one for the current day). I'm not sure if this was an intentional 
change or not. 

What version of the product are you using? On what operating system?
Rev 580 on linux.

Thanks!
Scott

Original issue reported on code.google.com by firecat4...@gmail.com on 15 May 2012 at 9:20

GoogleCodeExporter commented 8 years ago
It was intentional change.

Once there are too many diary files, creation of the new one becomes too slow 
due to auto diary index update.

Therefore auto update was removed and :VimwikiDiaryGeneragelinks command 
introduced instead.

Original comment by habamax on 16 May 2012 at 5:10

GoogleCodeExporter commented 8 years ago
Makes sense, thanks.

Is there any way to trigger the VimwikiDiaryGenerateLinks and/or the 
VimwikiAll2HTML from outside vim (e.g. a cron job) ?

Thanks,
Scott

Original comment by scottand...@gmail.com on 16 May 2012 at 6:59

GoogleCodeExporter commented 8 years ago
Something like this could work as a cron job:

vim -c "exe 'VimwikiDiaryGenerateLinks' | exe 'VimwikiAll2HTML' | quit"

Original comment by stu.andrews on 16 May 2012 at 8:46

GoogleCodeExporter commented 8 years ago
Awesome! That just solved a number a issues for me :) Although I had to add the 
name of the diary wiki file like:
vim .local/share/vimwiki/diary/diary.wiki -c "exe 'VimwikiDiaryGenerateLinks' | 
exe 'VimwikiAll2HTML' | quit"
or it complained about only running the VimwikiDiaryGenerateLinks on a diary 
index page.

Thanks!
Scott

Original comment by scottand...@gmail.com on 16 May 2012 at 8:54