Skip to content
This repository

Limiting pushed org files / agendas? #292

Closed
mashdot opened this Issue · 1 comment

2 participants

'Mash Henning Weiss
'Mash

I work from two main TODO files. One is my general agenda "mashdot.org" and the other is a GPG encrypted EasyPG file "work.gpg".

My org-agenda-files is setup:

(setq org-agenda-files '("~/shoebox/read/org/work.gpg" "~/shoebox/read/org/mashdot.org"))

And I am limiting my org-mobile-agendas to:

(setq org-mobile-agendas '("m"))

(setq org-agenda-custom-commands
'(
("m" "mashdot" alltodo ""
((org-agenda-files '("~/shoebox/read/org/mashdot.org"))
(org-agenda-sorting-strategy '(priority-up effort-down)))
)))

Although the "agenda.org" file is created correctly containing only my custom agenda ("m"); mobile-org still pushes up my "work.gpg" file causing a Decrypt Message dialogue box to appear but fail to decrypt. Now I assume this is not part of mobile-org but rather APG on Android. De/Encryption would be a handy addition if this is not already implemented.

Simply I am wanting to know if it is possible to limit which files are pushed up via "org-mobile-push". I had thought that "org-mobile-agendas" would control this.

Thanks

'Mash

OK found a workaround.

Decided to remove the specification for "org-agenda-files" and rather only use the "org-agenda-custom-commands", reassigning the normal "a" command. This now only pushes up the "m" custom agenda as defined above.

(setq org-agenda-custom-commands
'(

("a" "all" agenda ""
((org-agenda-files '("~/shoebox/read/org/mashdot.org" "~/shoebox/read/org/work.gpg"))
(org-agenda-ndays 7)
(org-agenda-start-on-weekday 0)
(org-agenda-time-grid nil))
)

("m" "mashdot" alltodo ""
((org-agenda-files '("~/shoebox/read/org/mashdot.org"))
(org-agenda-sorting-strategy '(priority-up effort-down)))
)

("h" "habit" tags-todo "habit"
((org-agenda-files '("~/shoebox/read/org/mashdot.org"))
(org-agenda-sorting-strategy '(priority-up effort-down)))
)

("w" "work" alltodo ""
((org-agenda-files '("~/shoebox/read/org/work.gpg"))
(org-agenda-sorting-strategy '(priority-up effort-down)))
)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.