-
Notifications
You must be signed in to change notification settings - Fork 110
-
Notifications
You must be signed in to change notification settings - Fork 110
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 with descriptions not linkified in org-ql-view #282
Comments
Hi Jake, I'm sorry, but I will need you to be even more specific before I can help you. You may also consider that this may be a case of the "XY problem," and that it would probably be helpful if you sought help on, e.g. https://old.reddit.com/r/emacs+orgmode, where many other people can offer help, and others can benefit from the answers. This tracker is best reserved for bug reports and feature requests (and I think there isn't either here, since AFAIK org-ql already does what you ask for). |
Sure. Let's see if I can better explain with some screenshots. This is my org-agenda, built from the following two headlines:
Both of the items are highlighted in the If I do an org-ql query on the same file to match all TODOs The first item, a link with a description, has face Hope that makes sense. Thanks! |
Now I understand. That will probably be a simple fix. I'll plan to fix it in the 0.7 release, but that may not be for a while, as my time to work on org-ql lately is limited. Thanks for reporting it. |
Cool. Thanks! I'll leave the issue open for you to close then. |
@jakebox Thanks for your patience. Looking at this issue again, I'm not sure what the correct fix is, because I don't fully understand how, where, and when Org is "prettifying" links. I noticed that when I comment out this call to Line 855 in 7f68db9
Could you please test the same thing and see if it fixes it for you? i.e. do:
(title (--> (org-ql-view--add-faces element)
(org-element-property :raw-value it)
;; (org-link-display-format it)
))
|
Yes, that works for me! I'm on Appearance is correct. Interesting how the link still exists (i.e. I can open it regardless of the formatting with Thanks for coming back to this. |
@jakebox Thank you for your patience, and for reporting this. It should finally be fixed. I still don't fully understand how or why this fixes it, but since it appears to work fine, I'm not going to spend the time to dig into Org's internals to find out why. If it turns out that this breaks something else, we'll revisit and fix it. I released this fix in v0.8.1 and on |
Wonderful, thank you for your diligence! Glad to see this fixed. |
Situation: I have a large org file with a number of headlines tagged
:article:
(things I might want to read). I like to get all of them at once with a simple org-ql query. I was writing a function to export the buffer so I can have a single file of tags, but it turns out that the links do not transfer because I use the orgmode link syntax in the heading (the [[link][description]]).Is it possible to have the links be transferred to the org-ql result? Or, at least, have them be highlighted with the org-link face (like links without descriptions are)?
Thank you! Hope this explanation is clear.
The text was updated successfully, but these errors were encountered: