mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
taskwiki: Add TaskWikiCalendar command
This commit is contained in:
parent
17834ecb72
commit
2399a040bb
2 changed files with 14 additions and 0 deletions
|
@ -10,6 +10,7 @@ augroup END
|
|||
command! -nargs=* TaskWikiProjects :py SplitProjects(<q-args>).execute()
|
||||
command! -nargs=* TaskWikiProjectsSummary :py SplitSummary(<q-args>).execute()
|
||||
command! -nargs=* TaskWikiBurndown :py SplitBurndown(<q-args>).execute()
|
||||
command! -nargs=* TaskWikiCalendar :py SplitCalendar(<q-args>).execute()
|
||||
|
||||
command! -range TaskWikiInfo :<line1>,<line2>py SelectedTasks().info()
|
||||
command! -range TaskWikiLink :<line1>,<line2>py SelectedTasks().link()
|
||||
|
|
|
@ -116,6 +116,19 @@ class SplitBurndown(Split):
|
|||
maxwidth = True
|
||||
|
||||
|
||||
class SplitCalendar(Split):
|
||||
command = 'calendar'
|
||||
colorful = True
|
||||
maxwidth = True
|
||||
|
||||
# Task calendar does not take fitler and in general uses
|
||||
# command-suffix syntax
|
||||
def __init__(self, args):
|
||||
self.args = []
|
||||
self.tw_extra_args = util.tw_modstring_to_args(args)
|
||||
self.split_name = self.split_name or self.command
|
||||
|
||||
|
||||
class SelectedTasks(object):
|
||||
def __init__(self):
|
||||
self.tw = tw
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue