org-effectiveness.el: Add org-effectiveness-count-task
* contrib/lisp/org-effectiveness.el (org-effectiveness-count-task): Add function.
This commit is contained in:
parent
0f8c6b0b2e
commit
a20abaa725
|
@ -77,6 +77,13 @@ many TODO pending"
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(message "Number of Canceled: %d" (count-matches "* CANCEL+ED"))))
|
(message "Number of Canceled: %d" (count-matches "* CANCEL+ED"))))
|
||||||
|
|
||||||
|
(defun org-effectiveness-count-task()
|
||||||
|
"Print a message with the number of tasks and subtasks in the current buffer"
|
||||||
|
(interactive)
|
||||||
|
(save-excursion
|
||||||
|
(goto-char (point-min))
|
||||||
|
(message "Number of tasks: %d" (count-matches "^*"))))
|
||||||
|
|
||||||
(defun org-effectiveness()
|
(defun org-effectiveness()
|
||||||
"Returns the effectiveness in the current org buffer"
|
"Returns the effectiveness in the current org buffer"
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
Loading…
Reference in New Issue