mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
Taskwiki: Add CurrentTask object
This commit is contained in:
parent
35d91e87fa
commit
d5cac0a785
1 changed files with 9 additions and 0 deletions
|
@ -49,6 +49,15 @@ def update_to_tw():
|
|||
cache.update_buffer()
|
||||
cache.evaluate_viewports()
|
||||
|
||||
class CurrentTask(object):
|
||||
def __init__(self):
|
||||
self.task = task.VimwikiTask.from_current_line(cache)
|
||||
self.tw = tw
|
||||
|
||||
def info(self):
|
||||
info = self.tw.execute_command([self.task['uuid'], 'info'])
|
||||
util.show_in_split(info)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
update_from_tw()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue