On 10/08/2022 19:30, Carlos Pita wrote:
I suggest to set description to nil and thus ask the user in such
scenario.
I'm fine with that. Alternatively the default may be the target or
custom id (that is, the same that is in the link part), again letting
the user change it. Thanks!
Carlos, have you tried Ihor's patch? I like the intention, but I do not
see any effect. If I read the code correctly, first chunk is for C-u
C-u, second one for id, not CUSTOM_ID links. The latter works on the
main branch: I am prompted to confirm heading title as description. So I
am confused.
In my environment my patches:
Max Nikulin. Re: Bug: org-store-link uses CUSTOM_ID instead of target
point. Sat, 6 Nov 2021 19:51:29 +0700.
https://list.orgmode.org/e2c807a7-1924-6f08-9e63-4f70aee9d...@gmail.com
helps for #CUSTOM_ID and <<target>> links. Heading title is offered in
the first case and empty description in the latter.
P.S. The reason why file name is originally stored is that the link may
be inserted to another file. When link is inserted to the same document,
only target part is transformed to strip file name, description remains
as it was stored.