org-dashboard
org-dashboard copied to clipboard
Some fixes
- List items erroneously display as their parent headline
*** Project [0/2]
- [ ] Task 1 [1/2]
- [-] Subtask 1
- [-] Subtask 2
- [ ] Task 2 * Shows as ***** [[myfile::Project][Project]] [ ] 0% ** [[myfile::Project][Project]] [████████████████ ] 50% ** After this patch, it shows as ***** [[myfile::Project][Project]] [ ] 0% **** [[myfile::Project][Task 1]] [████████████████ ] 50% *** NOTES ***** Uses "text search" link instead of "heading search" link, so it's not necessarily a unique match ***** It would be great to have an option to prefer line number links, id: links, or elisp: links
- [ ] Task 1 [1/2]
- Ignore cookies in table entries | Here in a table [1/10] |
- "Arithmetic error" when denominator is 0 *** Task [0/0]
- Handle links in headlines *** [[this]] is misparsed
Thanks!
Can you give an example of the case the first case refers to? The one you wrote got garbled up by the formatting engine.
(Please, in the future, one PR per fix/feature.)
Here's the example:
- Project [0/2]
- Task 1 [1/2]
- Subtask 1
- Subtask 2
- Task 1 [1/2]
When we scanned "Task 1 [1/2]", we were calling org-get-heading, which returned "Project" instead of "Task 1".
I'll be sure to stick to one PR per pull request in the future.
Hi, are you looking for any more information on this pull request?
No, thanks for checking and sorry for not getting around to merging yet. Just waiting for a time window to go through the changes, verify them and make individual commits. A matter of days hopefully.
@kstarsinic does navigating from links in *Org Dashboard*
to org files work for you, when the link was created from a heading that in turn contains a link (e.g. * TODO see [[http://www.google.com][google]]
), or do you also get a No match, do you want to create the heading
message?
Edit: I see your patch takes that into account already.
Also I'm debating whether it makes sense to support all possible elements where a progress cookie might appear. I'd be rather inclined to restrict the scope to headings only.
@bard navigating from those links works for me, which I believe you agree with now. As to restricting the scope, I feel that if I put a progress cookie there, I'd want to see it in the dashboard. I can see your point, though, but if you don't want to show list items (which are the only additional elements that can have progress cookies), then I think their progress should be rolled up to their parent element, and the parent element displayed in the dashboard.