Skip to content
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

Why is org-store-link not sufficient, Why is org-super-links-store-link necessary #69

Open
hpgisler opened this issue Jan 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@hpgisler
Copy link

This is not actually a bug - more a general issue / question I have..

Observed behavior:

  • using org-store-link is usable only for `org-insert-link'
  • using org-store-link is not usable in conjunction with org-super-links-insert-link

Expected / nice to have behavior

  • org-super-links-insert-link also accepts a link previously stored with `org-store-link'

Why would this be nice?

  • one keybinding less to remember (only org-store-link, org-super-links-store-link would not be required anymore)
  • When storing a link, I would not need decide at that moment, whether I want to insert the link later on via org-insert-link or org-super-links-insert-link, this decision would be deferred to the time when inserting the link.
@stefan2904
Copy link

I think this is because the two methods internally use a different mechanism to deal with this.

On the one hand, org-store-link directly builds and stores the link and description into the org-stored-links variable and org-insert-link only reads those and inserts the link. I think this is done because it supports more than just links to org headings.
On the other hand, super-links uses a register to store only the marker to which the link should be created and builds the link (and does more) later during inserting.

Maybe org-super-links-insert-link could be adapted to read the link stored by org-store-link and deconstruct it to retrieve the marker.

@toshism toshism added the enhancement New feature or request label Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants