Open linuxcaffe opened 9 years ago
Seems pretty doable and not hard. I'm marking as 1.1 because I don't want to hold of 1.0 too long.
wiki wiki action seems to be working amazingly well BUT currently points to the wrong (wrong for me) wiki root.
taskwiki doesn't actually declare it's WIKI_ROOT location, using default vimwiki configs.
This wiki action great, and I could probably reconfigure to fit, or symlink something, but maybe this suggests another config?
g:unite_taskwarrior_wiki_root = ~/.task/wiki/
would be my setting. With no such override, the viwiki default would actually be ~/.vim/wiki/ and the best (most vimwiki friendly thing) would be to parse the vimwiki declaration(s) ..
The action could be valid even without use_taskwiki=1 Set the default to ~/.vim/wiki/, cook up a related config, and I'll research the settings.
I can add another config if we need to, but I think the best thing to do would be to use the vimwiki config. It should just use whatever the normal wiki location is. I'll fix it to use '~/.vim/wiki' for now but once we find what the vimwiki config is we'll use that if set.
I added the config setting. I looked at the vimwiki docs and the path issue seems fairly complicated. We can have more than 1 wiki, so how do we know which to use? For now at least you can use wiki_root
this is related to #36
(if use_taskwiki = 1) taskwarrior/wiki presents a list of *.wiki files under $TASKWIKI_DIR.
This basically shows a constrained filelist, (maybe like https://github.com/qiushihe/unite-filelist or whatever might be already built-in) and previews/ opens the wiki files.