-
Notifications
You must be signed in to change notification settings - Fork 109
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
Links are broken in dynamic blocks when the task has the cookies [/] or [%] #248
Comments
Oops, I hadn't noticed that. Thanks. I'll get to this, but I have some other things going on too, and it shouldn't be too hard of a fix, so I'll tag this as "help wanted" and such, in case anyone else would like to pitch in. :) |
This fixes the issue alphapapa#248 by using `:title` instead of `:raw-values` and taking the first element. I am not sure if this will work in all the cases but in my test is good enough.
…adings Fixes alphapapa#248 Uses `:title` instead of `raw-value` combined with a `car` to capture only the title of the heading. Now the links are properly formed even if there exist cookies (`[/]` or `[%]`).
Fix alphapapa#248 Giving this edge case (alphapapa#249 (comment)) the use of `:title` could be not optimal. This commit uses a regexp to remove the cookie directly.
Is there a workaround where I get Currently, all of my projects do have progress indicator cookies and therefore I can't use org-ql for generating my project overview and jump table ... |
@maikol-solis @novoid A simple test shows that it seems to be fixed now. Please let me know if it works for you. Thanks. |
My current |
Yes, it won't be fixed on MELPA until the package is rebuilt. |
Glad to help! |
Today I updated my Elpa packages and got |
Fixes #248. Closes #249. Thanks to Maikol Solis (@maikol-solis) for reporting, and to him and Ihor Radchenko (@yantar92) for helping plan the fix.
Rebased this fix into 0.6.1 stable release rather than 0.7-pre. |
According to the org-mode docs (https://orgmode.org/manual/Breaking-Down-Tasks.html) we can add cookies to split tasks into subtasks.
However, the dynamic block broke the links for all the tasks having these cookies, because it adds the information of the cookie within the link.
In the example below, in the dynamic block, if you click in the
Task 1
, it doesn't go to anywhere because the right link should be[[Task 1][Task 1]]
Thanks.
The text was updated successfully, but these errors were encountered: