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

[SUGGESTION] id links with search #98

Open
Ypot opened this issue Sep 14, 2024 · 1 comment
Open

[SUGGESTION] id links with search #98

Ypot opened this issue Sep 14, 2024 · 1 comment

Comments

@Ypot
Copy link

Ypot commented Sep 14, 2024

Hi

Long time user of org-super-links here!

I would like to make a suggestion to add search to id links.

As I see you have little time, I will just share an example. If you are interested, and it is not enough to explain myself, let me know:

* Test 1
:PROPERTIES:
:ID:       2024-09-15T004054791309
:END:
:LINKS:
- [[id:2024-09-15T004054782261][Test 2]]
:END:
[[id:2024-09-15T004054782261][N20240915T004053.190543]]
* Test 2
:PROPERTIES:
:ID:       2024-09-15T004054782261
:END:
:LINKS:
- [[id:2024-09-15T004054791309::N20240915T004053.190543][Test 1]]
:END:
@alexispurslane
Copy link

If you have org super links use org-super-links-get-location, which uses org refile get location under the hood, then this vanilla org mode code to get completion for IDs for org refile targets should work, if I understand how org works correctly (I'm new to this and not at my computer to test):

(org-link-set-parameters "id" :complete #'org-id-complete-link)

(defun org-id-complete-link ()
  "Create an id: link using completion."
  (concat "id:" (org-id-get-with-outline-path-completion org-refile-targets)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants