From d537bf983b2c8e2a70b3e2fe485f4d803e339d56 Mon Sep 17 00:00:00 2001 From: Thelie Date: Mon, 14 Feb 2022 22:24:41 +0100 Subject: [PATCH] Added sync command. --- taskwarrior.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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