First off, thank you @nobiot for creating this cool package, and secondly thank you for spending time to help me debug my use of it
LOL, not only do I not get a marker returned, but I guess I have some other issue I need to resolve as well
(error "Invalid value of āorg-agenda-filesā")
OK now that the issue of an extra apostrophe has been resolved (and all of you now know my secret, that I am too far behind on my agenda to have tried using it lately ), now org-id-find actually works, and the transclusion works as well. I probably also have problems with not all of my IDs being registered with org-id, but I donāt believe the underlying reason in this case was that reason? Is it possible that org-id-find failing with an error would produce the observed error message from org-transclusion? I have not tried putting the error I had back, and stepping through the org-transclusion code to see how that error is raised and handled.
Try this to fix the registered IDs (org-id-update-id-locations (org-roam--list-all-files))
Yes. Itās not an error in the program. The function simply returns nil.
For an ID link, Org-transclusion tries org-id-find, and if nil gets returned, it will still continue the program at the moment. It will find no content of course, and gets you the error you observed in a different place in the program. At least this is a plausible program flow. I think I will update the code and catch the org-id-error to provide a more relevant message for Org-ID. Itās one of the most frequent issues for support now
My understanding is that Chromium browser (which Brave is built on) uses dictionaries from the hunspell project (lost a link, but you can get to the public directory within the chromium project). The English dictionaries there (variations exist) need updating
Good idea ā you might even want to include this code snippet in your error message, so itās there in the *Messages* buffer for people to directly evaluate
Hey, thanks again for this amazing package as well as your great documentation and support efforts!
A small question here because I it probably doesnāt deserve a dedicated GitHub Issue: Is it possible to transclude a heading section without transcluding the heading itself? Or specifying a different heading title at least? I usually want to transclude subtrees since thatās much more practical than paragraphs, but very often these need to have a different heading in the new context.
And another small comment: The marks on the fringes are almost invisible on my Doom standard themes (one: light & dark), neither on the Solarized themes. They are simply way too narrow. Is there a way I can customize that?
I think it would have been a good GitHub issue; but it is fine here, too. No stress
At the moment, Org-transclusion does not have an out-of-the-box way to do this. I realise #+include has content-only option for it. I am not using its logic, so for me, it would require re-engineering / re-factoring of the whole copy engine ā at least, thatās my gut feeling before investigating any further.
I might consider this, though. I was not good a reading the code back when I started writing Org-transclusion. #+include is in ox.el and itās not necessarily written in a composabile way for me to borrow parts of it. I will think about how I might go about this idea ā I am thinking this re-factoring might help Org-transclusion as a whole.
Re the fringe not visible on Doom, please have a look at my comment on this GH issue. In it, I am suggesting to make use of the custom faces: org-transclusion-fringe and org-transclusion-source-fringe. They should give you something like this:
Regarding sections without headings: Thanks for considering it! I do think it would be very advantageous to leave control of the headings to the target buffer. Besides the actual phrasing of the headine, this would make sure you can control things like tags and header properties of the transcluded elements depending on the target context. The point of transclusion to me is to use certain snippets in different contexts, so this flexibility would be great.
Regarding custom faces: Thanks for this tip! I have never used custom faces before, so thatās also why I didnāt know how to change these. I was looking for variables with those names and couldnāt find them. Could you maybe give me an example of a code snippet I could use in my config? Iāve googled it, but I can only see how I would do this using ācustomizeā and I try to not use that but put everything in my config because it seems more robust/reproducible to me. I think that might also be great for the Readme since there should be quite a big Doom community among org-transclusion/org-roam users.
I tend to use M-x customize-face but with Elisp, something like this?
I think the color (where āgreenā is) can be like ā#62c86aā (hex RGB, I guess?).
Have a look at the latest v0.2.0. With the :only-contents property, you should be able to achieve ādirectly linking to paragraphsā. Let me know how you go.
Ah, cool that youāve implemented this already. Great
I was originally just referring to the one heading that the link is targeting, but I guess one might be able to just exclude this one and show all the others using the new options, right? Anyway, thanks!
I think the feature of transclusion with a specific line number the range can be improved by writing a selecting function from the source.
On the source file, the user selects a region, M-x org-transclusion-select-source. Then, goto to the org-mode buffer, M-x org-insert-link-dwim, everything is done. Pretty much a similar experience with GitHub UI.