You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You see that "file_B" is used instead of "file_A". The reason is that (buffer-file-name) is evaluated in file_B.org when the back link drawer is created. What I would like is the function that returns me the buffer-file-name of file_A.org instead.
Maybe this function is already avalaible in org-super-links.el. Do you have an idea to help me ?
Thank you for this package ! :)
The text was updated successfully, but these errors were encountered:
vincent-picaud
changed the title
A question about org-super-links-backlink-prefixcustomizationn
A question about org-super-links-backlink-prefix customization
Dec 21, 2022
Hey, interesting, you are right on the reason why it functions that way. I'll try to take a look at the code soon and see if there is a good way to handle that use case. It's been a bit since I've looked closely at it.
So unfortunately it looks like there is not really a straightforward way to do what you want. You could duplicate the org-super-links--insert-link and org-super-links-insert-backlink functions. Change org-super-links--insert-link to pass in the marker to the source as an extra param in the call to org-super-links-insert-backlink and then jump to the marker there to get the buffer name. You could do something similar by modifying org-super-links-links-action. Both feel pretty gross though.
I have two files
what I would like when I create links is
I have modified
org-super-links-backlink-prefix
as follows:but with that what I get is
You see that "file_B" is used instead of "file_A". The reason is that (buffer-file-name) is evaluated in file_B.org when the back link drawer is created. What I would like is the function that returns me the buffer-file-name of file_A.org instead.
Maybe this function is already avalaible in org-super-links.el. Do you have an idea to help me ?
Thank you for this package ! :)
The text was updated successfully, but these errors were encountered: