Because you said you were using iCloud to store your notes: What Markdown editor do you use on iOS?

I tried out a couple now and the problem I have is that the editor can open files before syncing with iCloud and it’ll then overwrite the current file with the old content.

Did you encounter this problem too or do you have a mobile setup that works better?

@juen iOS user here – I’ve noticed that problem occasionally, so I switched over to using the GitJournal app instead (which makes sense for me because I use a git repository to sync my Obsidian files too).

GitJournal acts as an editor on iOS for your Git repository files.

Prior to using that, my solution was to go to the Files app on iOS and let it refresh updated files before opening an editor app.

Ray

2 Likes

Thanks, will check it out!

i choose to not edit on my phone, I don’t like typing a lot with it and it doesn’t let me access or use my obsidian note templates. i just use desktops and this workflow. iCloud is just for another redundant storage method only for me

1 Like

@tallguyjenks On Mac the backup script doesn’t work, do you have any idea of which could be the problem?

braindump_sync: line 11: [: “��: integer expression expected
date: illegal time format
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] …
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
error: pathspec ‘Sync:’ did not match any file(s) known to git
error: pathspec ‘”’ did not match any file(s) known to git

interesting, maybe its because i install the gnu core utils because the bad ones kinda annoy me. but try adding -u after the date function call for the serial date message:

git add .; git commit -q -m “$(date +”%Y-%m-%d %H:%M:%S”)”; git push

to

git add .; git commit -q -m “$(date -u +”%Y-%m-%d %H:%M:%S”)”; git push

let me know if that works and i can update it for others

Strange, now it works (maybe because I removed “Last Sync:” before the date as you wrote on Medium) but the error about the illegal date format remains and on GitHub the commit name is void.

this is after adding the -u flag?

Yes, exactly the same error minus the Sync: part

strange. its all supported POSIX standards for BSD so that should work on all kinds of systems especially other macs…

the error might be caused by the double quote format.

git add .; git commit -q -m “$(date +”%Y-%m-%d_%H:%M:%S”)”; git push

Try adding an underscore or a dash between it. That’s how it worked for me.
(At least the first time, then Git kept crashing in WSL 2, but that had nothing to do with the commit message, but with Git alleging there to be lock files when there weren’t.)

I wrote this powershell script with similar functionality. gist here: powershell script

You can schedule a windows task, similar like a cron job.

1 Like

I’ve been using Github as a sync platform for some time now with good results. I adjusted my link format to ‘Absolute path in vault’ which then gives me the added benefit of navigating (view-only) my notes repository using the Android Github app like a personal wiki. I constantly move from laptop to PC to mobile, so I haven’t tried the automation described above.

2 Likes

I adjusted my link format to ‘Absolute path in vault’ which then gives me the added benefit of navigating (view-only) my notes repository using the Android Github app like a personal wiki.

@Erisred would you mind explaining or breaking down this process for a non-developer? i’m not sure what this means

i’m attempting this obsidian -> github sync process now.
was considering using GitJournal to edit my notes on mobile -> sync to GitHub -> sync to Obsidian local files (?)

git pull
# ^^^^^^ So if any changes occurred remotely or on another machine
# your local machine knows to pull those changes down instead of 
# having to wait for a local change to run the script

@tallguyjenks would this bit enable the GitJournal sync to Obsidian files process?

i’ve never used git journal, git pull in that particular part of the script is so, hypothetically, if I’m at work and i make changes to my git repo through github, when i get home, the script will run and pull any changes made to the remote repo to my vault on my computer using git

1 Like

:fire: perfect, thank you!!

@hieu - I’m very much not a developer, myself…
Are you looking for help with Git/Github, or are you familiar with that part of the process? There’s a lot to unpack there, so I’d rather know your level of comfort before I walk through the process.

For the Obsidian part, I go to settings and set the ‘New link format’ to ‘Absolute path in vault’ *Disclaimer - some folks don’t like this as much, because the link format is not as clean as wikilinks. It is a standard link format, though, and works across platforms very well.

Then, using the Github app on Android, I can open the repository and navigate the files. The links work in the app like they do in Obsidian. This is the ‘view-only’ interface I mentioned.

I don’t do much editing on mobile, mostly because it’s messy. I’ve edited straight through the Gihub app, and I have Markor installed - it will also work in a pinch. I could not get Git journal to do what I wanted.
Good luck!

After using some self-written scripts myself I switched to

It handles the sync great, adds sanity checks, adds news files etc. It even runs fine on Windows using the bash shell that comes included in the Git client distribution.

6 Likes

Thanks! This is useful