org-ql
org-ql copied to clipboard
Cannot display habit graph in the search buffer
The consistency graph for habits doesn't show up in org-ql search buffers. Attempting to run org-habit-display-in-agenda
results in the error message "Not allowed in 'search'-type agenda buffer or component." I would have assumed that displaying habits is simply not a feature of org-ql if not for the second example in examples.org, which clearly shows habit graphs in the screenshot; I cannot replicate these graphs in the example on my system.
The source of this problem might not even be in org-ql, but some changes made to org-habit since the screenshots were made. Nevertheless, I'd like to figure out a way to deal with it.
Thanks for reporting. Maybe something has changed in org-habit, as you said. From a quick look at the relevant code in org-habit.el
, I can't see what the problem is, so it will require more careful investigation. But the org-agenda-type
variable and/or text-property may be at issue. Someone will have to trace the code in org-habit and see how it works now.
I probably won't have time to work on this soon, so if anyone would like to dig into it, feel free.