Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agenda breaks when "home" is in org-gtd-directory twice #206

Open
graven04 opened this issue Apr 12, 2024 · 2 comments
Open

Agenda breaks when "home" is in org-gtd-directory twice #206

graven04 opened this issue Apr 12, 2024 · 2 comments

Comments

@graven04
Copy link

If for you 'org-gtd-directory' you have a folder path that contains "home" twice or more
eg: /home/user/emacs-29/home/org-files/gtd/org-gtd
you get the following message when using command org-gtd-mode:

Non-existent agenda file ~/emacs-29/home/org-files/gtd/org-gtd. [R]emove from list or [A]bort?

This completely breaks the agenda view and no org-agenda output is displayed.
if you "R" it just shows up again endlessly and if you abort, well you abort so no org-agenda.

This is a very niche error. I don't think it needs fixing maybe just a little warning in docs.

@Trevoke
Copy link
Owner

Trevoke commented Apr 17, 2024

Hmm, this error sounds like it's expecting a file called org-gtd instead of a directory called org-gtd - Can I see how you have it configured? Maybe there's something we can tweak to make it more flexible.

@graven04
Copy link
Author

This is my config. Like i said, I had to change the path so it does not contain the word home twice so it works. The only difference in producing the error is to use the double home path: /home/user/emacs-29/home/org-files/gtd/org-gtd instead of the one i am using currently.

(use-package org-gtd
  :after org
  :init
  (setq org-gtd-update-ack "3.0.0")
  :config
  (setq org-edna-use-inheritance t)
  (org-edna-mode 1)
  (setq org-gtd-directory "/home/user/org-files/gtd/org-gtd/")
  (setq org-gtd-next "NEXT")
  (setq org-gtd-todo "TODO")
  (setq org-gtd-wait "WAITING")
  (setq org-gtd-done "DONE")
  (setq org-gtd-canceled "CANCELLED")
  (global-set-key (kbd "C-c d c") 'org-gtd-capture)
  (global-set-key (kbd "C-c d e") 'org-gtd-engage)
  (global-set-key (kbd "C-c d p") 'org-gtd-process-inbox)
  (global-set-key (kbd "C-c d n") 'org-gtd-show-all-next)
  (global-set-key (kbd "C-c d o") 'org-gtd-organize)
  (global-set-key (kbd "C-c d s") 'org-gtd-review-stuck-projects)
;; set gtd-areas of focus
  (setq org-gtd-areas-of-focus (list "list of areas"))
;; ensures each item you clarify will need to be part of a horizon.
  (add-to-list 'org-gtd-organize-hooks 'org-gtd-set-area-of-focus)
;; show horizons when clarifing - disabled for now due to privacy reasons
  (setq org-gtd-horizons-file "horizons.org")
  (setq org-gtd-clarify-show-horizons nil)
;; allow choosing where to refile
  (setq org-gtd-refile-to-any-target nil)
  )

 (add-hook 'org-agenda-mode-hook 'org-gtd-mode)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants