Skip to content

Some fixes#2

Open
kstarsinic wants to merge 1 commit into
bard:masterfrom
kstarsinic:fix-div-by-zero
Open

Some fixes#2
kstarsinic wants to merge 1 commit into
bard:masterfrom
kstarsinic:fix-div-by-zero

Conversation

@kstarsinic

Copy link
Copy Markdown
  • 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
  • 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

@bard

bard commented Jul 4, 2015

Copy link
Copy Markdown
Owner

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.)

@kstarsinic

Copy link
Copy Markdown
Author

Here's the example:

  • Project [0/2]
    • Task 1 [1/2]
      • Subtask 1
      • Subtask 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.

@kstarsinic

Copy link
Copy Markdown
Author

Hi, are you looking for any more information on this pull request?

@kstarsinic kstarsinic closed this Jul 31, 2015
@kstarsinic kstarsinic reopened this Jul 31, 2015
@bard

bard commented Jul 31, 2015

Copy link
Copy Markdown
Owner

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.

@bard

bard commented Aug 11, 2015

Copy link
Copy Markdown
Owner

@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.

@bard

bard commented Aug 12, 2015

Copy link
Copy Markdown
Owner

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 added a commit that referenced this pull request Aug 12, 2015
bard added a commit that referenced this pull request Aug 12, 2015
@kstarsinic

Copy link
Copy Markdown
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants