ichernyshovvv / org-timeblock

Schedule your day visually, using timeblocking technique inside Emacs
GNU General Public License v3.0
282 stars 19 forks source link

Allow display of the DONE tasks #58

Open yuri-urban opened 3 months ago

yuri-urban commented 3 months ago

Hi, is it possible to add the ability to not hide the past DONE events, since I'd like to use the timeblock display for entering the time sheets at the end of the day, but once those are gone - I'd have to re-enable my day's tasks to "TODO" in order to see them all displayed again.

yuri-urban commented 3 months ago

Commented couple of lines (see the ";" below) in the org-timeblock.el file, and it now shows me the "DONE" items as well. @ichernyshovvv is it possible to have this behavior as a variable setting?

(defun org-timeblock-get-buffer-entries-all (buffer)
  "Get all not done and not archived entries with any active timestamp in BUFFER."
  (let (entries tags
        update-markers-alist-p
        (buffer-markers
         (alist-get buffer
                org-timeblock-markers nil nil #'equal)))
    (with-current-buffer buffer
      (org-with-wide-buffer
       (goto-char (point-min))
       (while (re-search-forward org-tsr-regexp nil t)
     (if (save-match-data
           ;(or (org-entry-is-done-p)
           (progn
             (setq tags
               (mapcar #'substring-no-properties
                   (org-get-tags)))
             (member org-archive-tag tags))
           ;)
           )
         (org-get-next-sibling)