]> git.r.bdr.sh - rbdr/nota.nvim/blobdiff - plugin/nota.lua
Add rescheduling tasks
[rbdr/nota.nvim] / plugin / nota.lua
index 9c6e419bb8c3a71f8577a026667841e61e41278e..d34a7be124cd786a7a16bd41fe24226bcdc15a48 100644 (file)
@@ -75,7 +75,7 @@ command('NotaTagTask', function() require('tasks').tag() end, { nargs = 0 })
 command('NotaRescheduleTaskToday', function() require('tasks').reschedule_for_today() end, { nargs = 0 })
 command('NotaRescheduleTaskTomorrow', function() require('tasks').reschedule_for_tomorrow() end, { nargs = 0 })
 command('NotaRescheduleTaskSomeday', function() require('tasks').reschedule_for_someday() end, { nargs = 0 })
-command('NotaRescheduleTask', function(options) require('tasks').reschedule(options.args) end, { nargs = 1 })
+command('NotaRescheduleTask', function(options) require('tasks').reschedule(options.args) end, { nargs = '?' })
 
 -- .plan Handling Commands
 command('NotaOpenPlan', function() require('plan').open() end, { nargs = 0 })