alphapapa / org-super-agenda Public
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
Empty groups shown when blocked entries are hidden from org-agenda #135
Comments
|
OK, I can consider this a feature! Suppose you have a single Important task for which you add a non-important subtask and have Then, the |
|
I don't know how I don't know anything about |
|
I think I've found a simple solution. Org sets a text property (defun blocked-invisible-p (item)
"Check if item is blocked and invisible."
(eq (get-text-property 0 'org-todo-blocked item) 'invisible))This doesn't seem like it's relying on super internal/obscure funtionality, should be reliable to use. Based on the description of what you are trying to achieve, I think you can set your '((:name none :discard (:pred blocked-invisible-p))
(:auto-parent t))Without This all assumes the following org configuration: (setq org-enforce-todo-dependencies t)
(setq org-agenda-dim-blocked-tasks 'invisible) |
|
@iliakur Thanks for researching that. That should make it simple to support. |
|
@alphapapa I'd be interested in adding support for that if you could help out with development/testing setup. I've never worked with Cask before, for example, or with elisp tests for that matter Do you have thoughts for what the interface should be for this? Should it be one of those |
|
I don't use Cask for this project anymore; I should delete the file. You can set up a sandbox and run the tests like this: I don't know what the best interface would be for this. It might need to be a filter that runs on items before they are processed, enabled with an option, rather than being a selector. |
|
Just a headsup, I won't have time for this in January, will revisit my plans for February and update things here. |
When using
org-enforce-todo-dependenciessetting to hide blocked entries from the regularorg-agendaEmpty groups (which otherwise would contain the blocked entries) are shown for today.Empty groups for the following days are hidden alright, unlike the non-hiding today's empty groups.
What could be the problem?
Where does the code decide whether to display empty groups?
Note: I am using additional custom function in the
org-blocker-hookfor some extra blocking - could that be a problem? The hook is set beforeorg-super-agendais loaded though.The text was updated successfully, but these errors were encountered: