Log taskwarrior shell commands to messages buffer
This commit is contained in:
parent
2351ed042d
commit
02d96875ab
1 changed files with 8 additions and 7 deletions
|
@ -87,13 +87,14 @@
|
||||||
(taskwarrior-update-buffer new-filter))))
|
(taskwarrior-update-buffer new-filter))))
|
||||||
|
|
||||||
(defun taskwarrior--shell-command (command &optional filter modifications miscellaneous)
|
(defun taskwarrior--shell-command (command &optional filter modifications miscellaneous)
|
||||||
;; Taskwarrior
|
(let ((cmd (format "task %s %s %s %s"
|
||||||
(shell-command-to-string
|
(or filter "")
|
||||||
(format "task %s %s %s %s"
|
command
|
||||||
(or filter "")
|
(or modifications "")
|
||||||
command
|
(or miscellaneous ""))))
|
||||||
(or modifications "")
|
(progn
|
||||||
(or miscellaneous ""))))
|
(message cmd)
|
||||||
|
(shell-command-to-string cmd))))
|
||||||
|
|
||||||
(defun taskwarrior-export (filter)
|
(defun taskwarrior-export (filter)
|
||||||
"Export taskwarrior entries as JSON"
|
"Export taskwarrior entries as JSON"
|
||||||
|
|
Loading…
Reference in a new issue