taskwiki: Move methods that affect whole buffer into common namespace

This commit is contained in:
Tomas Babej 2015-03-21 14:11:41 +01:00
parent 0b02d85049
commit 5d32666cce
2 changed files with 23 additions and 20 deletions

View file

@ -4,7 +4,7 @@ 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')." python update_to_tw()"
execute "autocmd BufWrite *.".expand('%:e')." py WholeBuffer.update_to_tw()"
augroup END
command! -range TaskWikiInfo :<line1>,<line2>py SelectedTasks().info()