diff --git a/taskwarrior.el b/taskwarrior.el index 3f20207..e278227 100644 --- a/taskwarrior.el +++ b/taskwarrior.el @@ -121,7 +121,8 @@ (define-key taskwarrior-mode-map (kbd "f") 'taskwarrior-set-filter) (define-key taskwarrior-mode-map (kbd "t") 'taskwarrior-edit-tags) (define-key taskwarrior-mode-map (kbd "RET") 'taskwarrior-info) - (define-key taskwarrior-mode-map (kbd "P") 'taskwarrior-edit-project)) + (define-key taskwarrior-mode-map (kbd "P") 'taskwarrior-edit-project) + (define-key taskwarrior-mode-map (kbd "s") 'taskwarrior-sync)) (defun taskwarrior-load-profile (profile) "Load a predefined taskwarrior PROFILE." @@ -282,6 +283,11 @@ (taskwarrior-export "status=pending"))) (tabulated-list-print t))) +(defun taskwarrior-sync () + "Sync with taskd server." + (interactive) + (taskwarrior--shell-command "sync")) + (defun taskwarrior-export-task (id) "Export task with ID." (let ((task (taskwarrior-vector-to-list