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

to interoperate with Org Roam, need file... links #672

Closed
holtzermann17 opened this issue Nov 17, 2020 · 10 comments · Fixed by #681
Closed

to interoperate with Org Roam, need file... links #672

holtzermann17 opened this issue Nov 17, 2020 · 10 comments · Fixed by #681

Comments

@holtzermann17
Copy link

holtzermann17 commented Nov 17, 2020

The issue I ran into has to do with links in Org Roam vs Logseq using slightly different formats

On Org roam, links to files look like this would be like [[file:./grant_ideas.org][Grant Ideas]] and in Logseq, they would just be like [[Grant Ideas]]. Inside Org Roam, the link [[Grant Ideas]] is meaningful, but it means something different. There, it means link to a "target" like

* My ideas about grants <<Grant Ideas>>

(See https://orgmode.org/manual/Internal-Links.html for the details).

In order to link to a file inside Org Roam, we would need the [[file:./grant_ideas.org][Grant Ideas]]. I suppose one solution inside of Logseq would be to just ignore the [file:./grant_ideas.org] part of that link! But it's important to keep it around (like junk DNA...) for direct interoperability

@tiensonqin tiensonqin self-assigned this Nov 17, 2020
@anoffvu anoffvu added this to Ranked List in 1D Priority Test Nov 17, 2020
1D Priority Test automation moved this from Ranked List to Done Nov 18, 2020
@tiensonqin tiensonqin reopened this Nov 18, 2020
1D Priority Test automation moved this from Done to In progress Nov 18, 2020
@tiensonqin
Copy link
Contributor

@holtzermann17 It's supported now, you can add :org-mode/insert-file-links? true to the file logseq/config.edn.
After that [[Grant Ideas]] will be converted to [[file:./grant_ideas.org][Grant Ideas]] when you hit Enter.

@tiensonqin
Copy link
Contributor

tiensonqin commented Nov 18, 2020

I just record a gif,
https://www.loom.com/share/ab662e93400d449b91496108bf61794a

@holtzermann17
Copy link
Author

Can confirm that this works for me now! Thanks @tiensonqin

@CeleritasCelery
Copy link

CeleritasCelery commented Apr 17, 2021

Going to point out for others that might come to this thread that setting is actually :org-mode/insert-file-link? not :org-mode/insert-file-links? (Notice the singular link without an s.)

@rberaldo
Copy link

rberaldo commented Jul 6, 2021

org-roam version 2 now uses file IDs. Does this mean Logseq will be incompatible with this new version? Just learned about it and would like to try. Thanks!

@RyanGreenup
Copy link

org-roam version 2 now uses file IDs. Does this mean Logseq will be incompatible with this new version? Just learned about it and would like to try. Thanks!

It seems that LogSeq does support ID links [1] as does org-mode [2].

So it looks like using ID tags is actually the most compatible way to make links.

@rberaldo
Copy link

rberaldo commented Aug 9, 2021

Thank you, @RyanGreenup. I can't recall when I last tested LogSeq against my current org-roam set of notes, but back then I couldn't follow any ID links. I'll give it a try again whenever I have some time!

@ashishbhateja
Copy link

If I creating links from logseq, it creates file links instead of ID links to pages. Though these work in org-roam v2, they break the backlink functionality ☹️

@rbenson
Copy link

rbenson commented May 2, 2022

Also setting this feature breaks the ability to ctrl+o on the link to visit the page

@idanov
Copy link

idanov commented May 9, 2023

This functionality doesn't work properly with aliases. I've created an issue #9342, please upvote it if you are impacted by it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

8 participants