let s:plugin_path = escape(expand(':p:h:h'), '\') execute 'pyfile ' . s:plugin_path . '/taskwiki/taskwiki.py' augroup taskwiki " when saving the file sync the tasks from vimwiki to TW autocmd! execute "autocmd BufWrite *.".expand('%:e')." py WholeBuffer.update_to_tw()" augroup END " Split reports commands command! -nargs=* TaskWikiProjects :py SplitProjects().execute() command! -nargs=* TaskWikiProjectsSummary :py SplitSummary().execute() command! -nargs=* TaskWikiBurndownDaily :py SplitBurndownDaily().execute() command! -nargs=* TaskWikiBurndownMonthly :py SplitBurndownMonthly().execute() command! -nargs=* TaskWikiBurndownWeekly :py SplitBurndownWeekly().execute() command! -nargs=* TaskWikiCalendar :py SplitCalendar().execute() command! -nargs=* TaskWikiGhistoryAnnual :py SplitGhistoryAnnual().execute() command! -nargs=* TaskWikiGhistoryMonthly :py SplitGhistoryMonthly().execute() command! -nargs=* TaskWikiHistoryAnnual :py SplitGhistoryAnnual().execute() command! -nargs=* TaskWikiHistoryMonthly :py SplitGhistoryMonthly().execute() command! -nargs=* TaskWikiStats :py SplitStats().execute() command! -nargs=* TaskWikiTags :py SplitTags().execute() " Commands that operate on tasks in the buffer command! -range TaskWikiInfo :,py SelectedTasks().info() command! -range TaskWikiLink :,py SelectedTasks().link() command! -range TaskWikiDelete :,py SelectedTasks().delete() command! -range TaskWikiStart :,py SelectedTasks().start() command! -range TaskWikiStop :,py SelectedTasks().stop() command! -range -nargs=* TaskWikiMod :,py SelectedTasks().modify() " Disable as VimwikIFollowLink if !hasmapto('VimwikiFollowLink') nmap NoVimwikiFollowLink VimwikiFollowLink endif nmap :py Mappings.task_info_or_vimwiki_follow_link()