mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-23 02:23:07 +02:00
VimwikiTask: Add update_in_buffer method
This commit is contained in:
parent
3a3f466615
commit
a8cbbb55df
1 changed files with 3 additions and 2 deletions
|
@ -154,9 +154,10 @@ class VimwikiTask(object):
|
|||
# TODO: update due
|
||||
self.completed = (self.task['status'] == u'completed')
|
||||
|
||||
def __str__(self):
|
||||
self.update_from_tw()
|
||||
def update_in_buffer(self):
|
||||
vim.current.buffer[self.line_number] = str(self)
|
||||
|
||||
def __str__(self):
|
||||
return ''.join([
|
||||
self.indent,
|
||||
'* [',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue