- -- Task Handling Commands
- command('NotaToggleTask', function() require('tasks').toggle(configuration) end, { nargs = 0 })
- command('NotaInsertTask', function() require('tasks').insert(configuration) end, { nargs = 0 })
- command('NotaCaptureTask', function() require('tasks').capture(configuration) end, { nargs = 0 })
- command('NotaTagTask', function() require('tasks').tag(configuration) end, { nargs = 0 })
- command('NotaRescheduleTaskToday', function() require('tasks').reschedule_for_today(configuration) end, { nargs = 0 })
- command('NotaRescheduleTaskTomorrow', function() require('tasks').reschedule_for_tomorrow(configuration) end, { nargs = 0 })
- command('NotaRescheduleTaskSomeday', function() require('tasks').reschedule_for_someday(configuration) end, { nargs = 0 })
- command('NotaRescheduleTask', function(options) require('tasks').reschedule(configuration, options.args) end, { nargs = 1 })
+-- Task Handling Commands
+command('NotaToggleTask', function() require('nota.tasks').toggle() end, { nargs = 0 })
+command('NotaToggleTaskImportance', function() require('nota.tasks').toggle_importance() end, { nargs = 0 })
+command('NotaInsertTask', function() require('nota.tasks').insert() end, { nargs = 0 })
+command('NotaCaptureTask', function() require('nota.tasks').capture() end, { nargs = 0 })
+command('NotaTagTask', function(options) require('nota.tasks').tag(options.args) end, { nargs = '?' })
+command('NotaRemoveTagTask', function(options) require('nota.tasks').remove_tag(options.args) end, { nargs = '?' })
+command('NotaRescheduleTaskToday', function() require('nota.tasks').reschedule_for_today() end, { nargs = 0 })
+command('NotaRescheduleTaskTomorrow', function() require('nota.tasks').reschedule_for_tomorrow() end, { nargs = 0 })
+command('NotaRescheduleTaskSomeday', function() require('nota.tasks').reschedule_for_someday() end, { nargs = 0 })
+command('NotaRescheduleTask', function(options) require('nota.tasks').reschedule(options.args) end, { nargs = '?' })