-
-
Save tall3n/12fa6cc2e452c1fec1ca18d88e0d309f to your computer and use it in GitHub Desktop.
Steps to auto sync IOS + windows Logseq.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am a windows destkop user and Iphone user. and have come up with this workflow that is completley automatic and works really really well. | |
Pre-reqs. | |
- Git repo access | |
- Paid version of workign copy | |
- logseq | |
- Shortcuts app on Iphone | |
# Windows Side | |
You can use the https://github.com/logseq/git-auto to do your auto pushes on a schedule. | |
What I did was use a small script that I wrote (very simple) that runs on a task scheduler within windows that runs every 5 minutes. Ensure that you have the "run even when user is not logged in selected so you don't see the command window pop up" | |
```powershell | |
Set-Location <notes_dir> | |
git pull | |
git push | |
``` | |
#IOS Side. | |
1.) Download working copy and pay for it(worth it even outside of logseq usage). https://workingcopy.app/ | |
2.) Open working copy and link external directory in this cases it will be the logseq folder. | |
3.) Within workingcopy set a remote branch (where your logseq notes are stored, and pull into this repo) | |
4.) If the above is causing you issues create a new repo with working copy and push it to a remote, then you can transfer your notes to this folder external, and then just pull using working copy | |
5.) Open your shortcuts app and create the following Automations | |
### On App Open | |
a. When Logseq is opened | |
b. Do Working Copy -> Pull Repo -> Select Logseq repo | |
c. Turn off ask before running (or leave it on up to you) | |
### On App Close | |
a. When Logseq is closed | |
b. Do Stage for Commit, Commit Repository, Push Repository (All within your logseq repo) | |
c.) Turn off ask before running (or leave it on up to you) | |
6.) Profit | |
Now when logseq is opened on your iphone it will pull your latest changes and when logseq is closed it will commit any change you made automatically, no more manual syncing! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment