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

Straight org-roam links not supported? #128

Open
agzam opened this issue Jan 9, 2021 · 6 comments
Open

Straight org-roam links not supported? #128

agzam opened this issue Jan 9, 2021 · 6 comments

Comments

@agzam
Copy link

agzam commented Jan 9, 2021

It doesn't seem to work for links like:

[[roam:foo]]

Even though backlinks appear in org-roam buffer. Only if the link is vanilla org link such as:

[[file:20210108200947-foo.org]]

Then it shows it on the page. Seems it doesn't work with org-roam-link-auto-replace set to nil

@goktug97
Copy link
Member

goktug97 commented Jan 9, 2021

Added a custom variable org-roam-server-link-auto-replace. By default it is set to t. It will replace Org-roam's roam links with file links.

0dddb3c
c779320

@agzam
Copy link
Author

agzam commented Jan 13, 2021

I still can't make it work. Is there something I'm missing? So I have:

  • A few notes that contain [[roam:foo]] links
  • My org-roam-link-auto-replace is set to nil
  • In Emacs, Org-roam buffer shows backlinks when visiting Foo note
  • I tried:
    • setting org-roam-server-link-auto-replace to nil, restarted server
    • setting org-roam-server-link-auto-replace to t

And that did not work for me. Graph shows all the notes that lead to "Foo" scattered around like miserable orphans.

@goktug97
Copy link
Member

I only fixed the html export, I forgot about the graph. I will look into it when I got some time.

@goktug97
Copy link
Member

The problem is edges for those links are filtered by the sql query in the graph function because they are not stored as file in the database. Query results are file -> file but the actual link for roam-link is id -> file. During the database creation adding org-roam-link-replace-all won't help either because the database isn't created yet so it can't replace the org-roam links. I also tested with org-roam-graph and the result is the same.

@jethrokuan do you have any suggestions?

@jethrokuan
Copy link
Member

Might have to rethink the whole caching and interaction mechanism in Org-roam, I think this will come back to bite us later on. Will post up some redesign plans soon-ish.

@agzam
Copy link
Author

agzam commented Jan 19, 2021

Also, while we at it (I'm not sure if this is related), can we please discuss the possibility of including links to headings (i.e.: [[roam:filename*Heading]] type of links) in the graph at some point?

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

3 participants