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

sometimes I reach a bug when org-super-links-store-link ~ This link has already been stored #89

Open
pedro-nonfree opened this issue Dec 31, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pedro-nonfree
Copy link

Going very fast around this problem. Sometimes I reached a bug that is only solved when I restart emacs. And I found a solution, and is to cleanup the org-stored-links variable, which looks like a list of stored links. Because anyway, I am not using the insert link list, so I just need to most immediate one, and reaching the "This link has already been stored" means that it could paste a very weird unusable link which drives me crazy

I am on org version 9.6.9

this is the patch I am applying to my config, sharing all org-super-links config because is very easy-straightforward in my case

(use-package org-super-links
  :straight (org-super-links :type git :host github :repo "toshism/org-super-links" :branch "develop"))
-(global-set-key (kbd "C-c l" 'org-super-links-store-link))
+(global-set-key (kbd "C-c l") (lambda() (interactive) (progn (setq org-stored-links nil) (org-super-links-store-link))))
(with-eval-after-load "org"
  (define-key org-mode-map (kbd "C-c C-l") 'org-super-links-insert-link))
@toshism toshism added the bug Something isn't working label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants