Nextcloud integration

It would be awesome if one could access their Nextcloud files with a slash command (/nextcloud) and embed them in logseq. Similar to how the Zotero integration is currently implemented.
This, of course, could be enhanced even more to contacts, calendar etc.

Curious what you think!

Also the opposite would be nice: installing Logseq in the cloud as Nextcloud app and use it with files hosted on Nextcloud.

13 Likes

Nextcloud integration would be good. Currently, I find that editing an .md file breaks a Logseq journal file, as all - headings are replaced with *. Could Logseq not accept * headings?

1 Like

Until official integration /cloud solution Iā€™m using Nextcloud WebDAV sharing. So WebDAV shared folder is local folder for Logseq. My office Laptop+ homePC + Home Linux Laptop are using same Nextcloud folder shared with WebDAV.
https://docs.nextcloud.com/server/latest/user_manual/en/files/access_webdav.html

I suppose editing same page simultaneously is not possible this way but on the other hand Iā€™m only at one machine at the time :wink:

1 Like

Thanks @Vulcan69 - unless you have incomplete edits on more than one device! Iā€™ve started getting loads of edit conflicts in the last couple of weeks accessing Logseq in synced Nextcloud folders on Windows, Iā€™ll try connecting to the share directly using WebDAV. Things seem a bit more reliable on Mac.

To me, synchronizing instances using webdav (which is included in nextcloud) would be awesome!

1 Like

it would be awesome, the total solution to fix all of my problems

Just a quick warning. Donā€™t open logseq md files with Nextclouds native ā€œTextā€ app. (web interface) It will reformat everything and breaks the page for logseq.

2 Likes

That sounds great. Just wondering: Is using WebDAV any better than using the Nextcloud desktop client? Have you tried both?

They are different approaches:

  • Nextcloud client saves files locally and keep them in sync when an Internet connection is available
  • WebDAV is a protocol to access remote files so you are editing remote files live

The quality of your WebDAV experience really depends on your client and to use it with Logseq you need your WebDAV client to expose those files as regular local files to Logseq. Operating systems generally have different ways to let programs ā€œmount virtual file systemsā€.

For example in KDE/Plasma (Linux desktop environment) native applications (supporting so called ā€œKIOā€) can access remote files as they were local using different protocols, including WebDAV. Third party apps like Logseq that donā€™t support KIO can still access those files thanks to a tool called KIO-FUSE that mounts remote directories as a virtual file systems, Logseq canā€™t tell the difference and just read/write there.

1 Like

Thanks for the explanation. Iā€™m using GNOME Files (Nautilus) and it too can mount WebDAV folders as local folders.

But WebDAV folders donā€™t work offline, so I was wondering why one would choose to sync a Logseq graph via WebDAV instead of the Nextcloud client, which would seem more reliable to me.

Does WebDAV have any advantages Iā€™m missing for this use case?

Since files are edited live you are less likely to get conflicts: when you sync files with something like Nextcloud client, if you edit a file with a device but the Internet connection doesnā€™t work, then later you edit the same file with another device and only at the end the connection work again what would happen? Probably only more recent edits on the second device are stored and the other ones are lost. I didnā€™t try it, but this is the kind of issues.


In general another advantage of WebDAV is browsing large archives with many big files that you donā€™t want to keep synced.

Maybe, if you have very large files that you want to mention in your graph but you are OK with them being available only when there is an Internet connection, you can try a mixed approach:

  • create a folder in your graph one to contain only big assets
  • sync everything but that folder with Nextcloud client or Syncthing
  • mount that folder using WebDAV so that the big files are in a remote server
1 Like

Thanks for the insight! Now I get the point for certain use cases.

1 Like

Iā€™m new to Logseq and Iā€™m very intrigued, but an integration with Nextcloud is kind of a must for me. Iā€™m working on a chromebook often and it does not have webdav support, so thatā€™s not an option.

I hope Nextcloud integration will be possible in the not so distant future.

2 Likes

Currently using Syncthing but Nextcloud integration would be fantastic solution for future.
+1 :raised_hands:

1 Like

Nextcloud integration would be good. Currently, I find that editing an .md file breaks a Logseq journal file, as all - headings are replaced with * . Could Logseq not accept * headings?

This is not a Logseq problem, but rather a Nextcloud problem. Their webapp editor breaks formats, it is only good for nextcloud use only. It is good because it is possible to do simultaneous editing. Iā€™ve personally disabled it and will enable it when they will have made it not reformat everything.


As for Nextcloud syncing, it already works fine. It doesnā€™t work as well with mobile device. And thatā€™s again a Nextcloud problem since their mobile Nextcloud client wonā€™t sync like it syncs on desktop devices. So another route is needed.

Hereā€™s my post on the subject:

FolderSync (thereā€™s other things Iā€™ve mentioned on the subject of syncing on this thread):

My conclusion is this ainā€™t a Logseq feature beside Webdav integration where it would allow using a webdav stored Logseq graph and perhaps also be able to use webdav file and video embeds. I remember trying to embed a video from Nextcloud but it failed.

So my recommendation would be to change this feature request for webdav integration. I also recommend taking a look at the above link to provide a self-hostable solution which could eventually provide collaboration features. I also recommend using a git (self-hosted, private or public, depending on your needs) repository when trying to sync with multiple solutions (for instance, Nextcloud and FolderSync) (remember to filter out the .git folder with FolderSync) to get a backup solution and be able to see if something was altered.

So far, I did not have any sync problem with Nextcloud and FolderSync, the only problem I see is when a page is simultaneously edited or if a page is edited on Desktop and mobile device (since there is a sync delays on mobiles with FolderSync).

Edit:

Here is the feature request for 2 way syncing Nextcloud client on mobile:

hi
the plugin could be inspired by Obsidian response to this: a plugin that corrects nextcloud modifications

Nextcloud has a plugin that ā€˜blocksā€™ edition when a file is being edited in nextcloud.

unfortunately, this would not solve the problem on synching on iOS systems
which is one of the reasons why I sadly had to leave Logseq