From 5164517e09bb75befa123a759c00600ff5e8ab5c Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Tue, 2 Oct 2018 18:09:34 +0200 Subject: [PATCH] Fix id filter taskwarrior-export with temporary workaround --- taskwarrior.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/taskwarrior.el b/taskwarrior.el index 83632a8..aabb6b1 100644 --- a/taskwarrior.el +++ b/taskwarrior.el @@ -2,6 +2,7 @@ ;; ;; TODO: Implement modeline indicator for deadline and entries ;; TODO: Update buffer if command modifies the state +;; TODO: Extract "1-1000" id filter into variable (require 'json) @@ -42,10 +43,8 @@ (defun taskwarrior-export (filter) "Export taskwarrior entries as JSON" - (let ((filter (concat "id " filter)) - (command "export")) (json-read-from-string - (taskwarrior--shell-command command filter)))) + (taskwarrior--shell-command "export" filter))) (defun taskwarrior-change-project (project) (interactive "sProject: ") @@ -86,7 +85,7 @@ the front and focus it. Otherwise, create one and load the data." (forward-char))))) (defun taskwarrior-write-entries () - (let ((entries (append (taskwarrior-export "context:personal") nil))) + (let ((entries (append (taskwarrior-export "1-1000") nil))) (dolist (entry entries) (progn (insert (format