Trevoke / org-gtd.el

A package for using GTD with org-mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In 3.0beta, `org-gtd-mode` causes tasks to show up multiple times in `org-agenda`

Trevoke opened this issue · comments

@maikol-solis this should now be fixed on on the org-gtd-3 branch as well.

Hi! I tried on my config, and the change in this commit does not work for me:

org-gtd.el/org-gtd-core.el

Lines 216 to 220 in d30eda3

(seq-uniq (if (stringp org-agenda-files)
(append (org-read-agenda-file-list)
(ensure-list org-gtd-directory))
(append (ensure-list org-agenda-files)
(ensure-list org-gtd-directory)))))

The issue comes because I had org-agenda-files and org-gtd-directory reading the same files, therefore the duplication.

My workaround was to do (setq org-agenda-files nil) and this sanitized the agenda view with one line per task as expected.

Yes, sure. No problem. I'm glad that at least the problem was identified.

Okay this should do it.

With the custom function for the agenda views, it should resolve the problem definitely.

Thanks.