-
Notifications
You must be signed in to change notification settings - Fork 110
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
Two level agenda TODO hierarchy #372
Comments
Well, you could write a Lisp function to output the appropriate
Are you not using Anyway, this sort of thing should be easier in the future when the branch demonstrated here is merged: #331 |
Thanks. That was my original approach, but I couldn't get it to work. After reading your comment I decided to return to that approach and did get it working. I just needed to be more careful about quoting/backquoting of the I did also try piecing together an Two semi-related questions:
|
Yes, the answer to problems like "this backquote/splice form isn't working" is usually to try again carefully until it works. :)
The order changing is likely related to alphapapa/org-super-agenda#207 and/or alphapapa/org-super-agenda#242
I can't speak to how
|
I'm not great with elisp and somewhat new to org-agenda, so figuring out the splicing part of this was tricky for me. I eventually figured it out, so to save the next person who needs it some time here's a basic example to get you started: (let ((out nil))
(dolist (file (org-agenda-files) out)
(push
`(org-ql-block '(todo "TODO")
((org-agenda-files '(,file))
(org-ql-block-header ,file)))
out))
(setq org-agenda-custom-commands
`(("c" "Org QL Block Agenda"
(,@out))))) |
I'm trying to get an agenda/super-agenda view which collects TODOs into blocks, one block per
org-agenda-files
file, and then within each block, display the TODOs, flattened by org outline path. For example, the following outline:Should turn into something like:
So far I haven't been able to figure out how to do this, and I'm not sure if it's because I don't know how things work, or it's not really possible. I can get the TODOs organized more or less as desired by adding the following
org-ql-block
call toorg-agenda-custom-commands
:However this requires adding new, hard-coded block for every file, removing code when files are deleted/renamed etc. It would be much better if there was a way to generate a block for every file currently in
org-agenda-files
. I also tried doing a stored view withorg-ql-search
, but I wasn't able to get the two level "per file/category, per project" hierarchy working correctly. If I got the hierarchy/indentation correct, items were always out of order and so it was not intelligible.Any suggestions? Thanks!
The text was updated successfully, but these errors were encountered: