org-brain icon indicating copy to clipboard operation
org-brain copied to clipboard

Update org-brain-create-relationships-from-links

Open samspo opened this issue 6 years ago • 1 comments

It is now possible to use org-insert-link (bound to C-c C-l by default) in an org-brain entry, in order to link to children (brain-child:), parents (brain-parent:), and friends (brain-friend:).

org-brain-create-relationships-from-links should maybe be updated to take into account the new possible links

samspo avatar Feb 23 '18 19:02 samspo

A problem is that org-brain-create-relationship-from-links was meant for configurations prior to version 0.4, in order to convert them to the entry system introduced in 0.4. Now that brain-child links has been introduced, brain links isn't really meant to be used in order to create child relationships.

Another problem is that org-brain-create-relationship-from-links only creates relationships from a file entry (the one containing the link) to another entry. If you're using headline entries, the function should probably create relationships from the headline entry, to the linked entry?

Perhaps two versions of the function is needed? The old one, meant for transferring to the 0.4+ system, and a new one created with the 0.4+ system in mind to start with? A possibility of the new one could be to only scan the entry at point (or perhaps the current file, or prompt for an entry/file), making it faster than scanning all files every time.

I appreciate feedback on this issue, since I'm not currently using this functionality in my workflow myself.

Kungsgeten avatar Feb 23 '18 22:02 Kungsgeten