-
Notifications
You must be signed in to change notification settings - Fork 382
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
Documentation: How to use Markor together with Sync apps #358
Comments
I use Syncthing - both on my desktop (Linux Debian) and on Android phone (Xiaomi Redmi 4x). Open source, privacy (my data doesn't get to the third party), etc. I use both with local networks settings (syncing by local home wifi) since in the recent past I didn't have mobile internet, so I connect desktop (firefly at 192.168.1.4) and phone (redmi 4x new at 192.168.1.6). I prefer keep separate folder for texts ( For desktop linux I install syncthing by default repo ( For android phone I get syncthing from f-droid.org and connect it with desktop. Rarely I may get version conflict, but syncthing keep both version of files (see at screenshot) and I just use vimdiff. So far - 143 files inside |
@tengucrow Thanks for writing up syncthing! |
Will try to do it. But I can't get rid of the feeling that most of these information are already described in the syncthing manuals :( |
You can refer to that docs! whats important is only how to setup folders on android and howto open those files/change folder :). In case of Syncthing this is very easy and short described. For NextCloud its lots more for example |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I found the setup for Syncthing quite easy. Below is my (very short) how-to in case its useful, but first I have a question: My one pain point is that I am unable to have multiple root notebook folders. That is, I would like to have multiple (non-nested) synced folders (and maybe an unsynced folder), and be able to easily open, edit and save documents from any of them. Is this a feature that has been considered? Or am I missing something? Syncthing is a protocol to sync files between your devices, with implementations for various platforms. Unlike other (even open source) sync and backup solutions, it does not require complex server setup or dependence on 3rd parties. According to their website:
To start off, install Syncthing and set up a shared folder. More info on how to do that here. Then, all you need to do is tell Marker where to look for and save files:
And markdown, for easy copy-paste:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I wrote a description of how to sync markor with NextCloud. Let me know if you have any questions, comments. It works with NextCloud 3.3.2 and Markor 1.4 To sync your markor files using NextCloud, you will need an app to sync with your NextCloud account. One app you can use is simply called NextCloud and is available on F-droid or Google play. Once you have the NextCloud app installed, you will need to log in with your NextCloud account, which will create the directory necessary to store your NextCloud files. The next step is to determine which directory your NextCloud files are synced to. In the NextCloud app menu, click on Settings. Find and remember the path listed next to 'Storage Path', since this is the directory where Markor needs to save your files. The path will likely look something like this Now, you may want to transfer your current Markor files to this directory, so you can keep using these files. Your Markor files are stored by the directories described in the Markor menu -> Settings -> App-wide -> Save location. You can use a file manager app to move them from the specified directory in Markor to the directory which NextCloud syncs. Now, we must change where Markor checks for your files. In the Markor menu, click on Settings and then App-wide. The app shows four directories and/or files under Save location. Click on whichever files you want to be synced to NextCloud. A window should pop-up where you can choose the new directory. Choose the path which you found in the NextCloud app followed by the folder of your NextCloud account. To get NextCloud app to automatically sync, you will need to specify the files for offline use. Log into the NextCloud app, click on All files in the left menu, which should bring up the files stored in NextCloud. For Markor files you want to be automatically synced, click on the three dots to the right of the file name, and click 'Set as available online'. NextCloud should now sync the files automatically. |
@goldmanm |
@tengucrow @wmww |
All OK. Sorry for delay - was bogged down in work :( |
#126 (comment) - How to sync with Dropbox. |
@bbkane I tried this back then and it worked fine. |
@gsantner Edited my comment to relate it to this issue. |
@gsantner, Finally added the screenshots to this post and updated some of the wording. |
How about using Document Provider to notify Nextcloud app of changes so the syncs are seamless. Some info here nextcloud/android#3534 (comment) (I'm just passing info on, I know very little about this and am trying to set up a synced note workflow) |
I have opened a new issue (#547) in regards to this. Using this system could potentially solve a lot of problems people have with cloud storage. |
It would be nice to have a git feature of the app to sync notes over github. |
You can do that with MGit |
@gsantner Thanks a lot. |
@ceylanb I like to use PocketGit for this but am giving MGit a try as a result of @gsantner comment, above. I have a pretty good workflow going using Git. It seemed inconvenient to do the synching manually but I have had far less trouble doing this than I have with various sync apps and, after I settled into a rhythm, I only really sync a couple times a day, if that. |
I'd like to use git too, I am thinking to use one file name dairy.md to keep my diary, git will save the history. |
@xu4wang - the workflow is pretty simple:
Now, I am using a private Github repo for my files but you can use any Git repo solution (self-hosted, Bitbucket, etc). I use Git at my job so this seems like a pretty natural way of doing things. If I haven't answered your question in enough detail, please let me know and I'll try to answer any specific questions you have. |
Thanks @macdonaldster for the detailed flow introduction. I understand it's a typical workflow for two git clients work together. One on the mobile, another on the workstation. I did some test today, and finally end up with below hybrid way:
|
@wmww @tengucrow The wiki was a first idea how to get the info to the users, but I feel like dust not much people looking into it. Fits better there. It was not much work to copy over as blog also uses Markdown 😃 . |
A probably simple(?) question wrt cloud storage syncs. The description from the WIKI that originated from this discussion relies on selecting the storage folder of the cloud app. This is simple enough and the general idea is not depending on a specific cloud storage, of course (same procedure works First off: this does work for me, but only as long as said folder lives in the internal storage, like described between the lines as However, at least recent editions e.g. of nextcloud do allow it. Having limited internal, but quite a bit of sd card storage, I actually told the the cloud app (nextcloud, but I think this does not matter) to use the sd card, so it is something like Here, it seems, I am out of luck. First, all all those dirs get a strike through highlighting in Markors browser. I understand from #909 I should follow the FAQ to give Markor access to the SD card (BTW: it's a good idea to add the link to the issue). I followed the procedure outlined, but to no avail. Something changed (as I guess from not being able to end up in this setup dialogue again) but all folders still get the strike through. If, accidentally, before reading up all this, I just simple mindedly set the storage folder right from Markor to the external storage dir close the app it will crash and never come up again. "This app keeps crashing". I think this is like #816 The only solution I found was to de-install Markor entirely, and re-install it so it seems to forget my mistake (and my settings and the home screen shortcuts but at least the documents still exist.) Making this long detour short: is the gist of all this, that I could sync against a cloud storage provider if and only if it's sync app places the files in the internal storage? (Would be sad news comparing Markor e.g. with nextcloud notes.) If so, I think it would require some note in the docs. (BTW: using Markor 2.2.10 from F-Droid with a Sony XPeria G8441 and it's latest edition of Android 9.) |
only real storage on the phone is there, i.e. SD Cards. No cloud storage or cloud mounting. When you sync a folder structure to some local folder, point Markor to it. "Virtual cloud" is not suppoted. |
Understood. For nextcloud I'd just use something like However, I am not able to get Markor to write to any SD card folder :( That is I end up in step 2 of https://gsantner.net/assets/blog/img/markor/markor-v1-8-showcase-2.jpg but step 3 does not happen:
Any hints on this? |
So you are inside the 1234-5678 sd directory, press the plus button and nothing happens? |
First time I got the dialogue, can select the folder, I come back and get them all with strike through again. Same on any level of the tree. :S But, silly me. I did not realize that the selection dialogue does not send me to the folder I were just were in but to some funny place elsewhere that looks like it, so I have to explicitly select the SD card first from the left hand burger menu first. Doing this, and only then [Select], tada. :) All is fine now. (Yes, I did try it about 10 times with drop markor, reinstall from f-droid etc. before writing to this issue.) Yes, it is marked with a red border in your screenshot. So one can amend the documentation wrt nextcloud and friends: Note: If your nextcloud app is configured to sync to a sd card make sure to follow the instructions for from the FAQ How do I save files to SD Cards? first. Once you can write a file to your sd card you may move your notebook structure to the nextcloud storage path. To do so just follow the instructions as for internal storage. I would suggest to (if this is possible) to add the mini-screenshots (1,2,3,4 in step 2 of https://gsantner.net/assets/blog/img/markor/markor-v1-8-showcase-2.jpg) explicitly to the FAQ in say "full size" like the other screenshots for silly people like me. BTW: still, if I don't give permissions properly, and select the sd card as |
@macdonaldster thanks for sharing your workflow above: does it permit you to rename & resync files from your phone? Thanks |
General information
Description
Currently the howto use Markor with X sync app is partially in the app and partly in Matrix discussion.
It would be good to have a (markdown) document that describes howto setup file sync with NextCloud, Dropbox, Syncthing, FolderSync... .
If you use something of those give some insights how it works, best with screenshots.
As one person very likely will not have all sync apps and services, yes multiple people can work on this :).
The resulting document will be be shown in the Markor GitHub Wiki and may be either integrated in the app itself (not decided yet).
( issue ref #197 )
The text was updated successfully, but these errors were encountered: