pajoma / vscode-journal

Lightweight journal and simple notes support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=pajoma.vscode-journal
GNU General Public License v3.0
233 stars 40 forks source link

Save journal data to iCloud #96

Closed olgv closed 2 years ago

olgv commented 2 years ago

Hi there.

Is there any way one can point the Journal:Base towards an iCloud folder? I made a Shortcut to a folder residing in iCloud, also tried adding the ~/Library/... path to VS Code, but VS Code is unable to save the file in that location.

Any advice ? Thank you.

pajoma commented 2 years ago

I am not sure how the iCloud folders are configured. I have tried it with Google Drive and OneDrive, both act like normal folders in the filesystem.

Can you check the logs (switch on dev mode in journal settings, open "output" and select the journal in the dropdown

grafik

dokie commented 2 years ago

This works for me:

  1. Create a soft link in your home folder to your iCloud folder where you want the files to live via (for example it could be called MyJournal) - ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/MyJournal ~/Journal
  2. Make sure you use the default base dir then in the journal extension ~/Journal

When I tried an alternative local folder it seemed not to work and saved journal files in the default local base dir.

mameen commented 2 years ago

I'm not sure about iCloud.. but I have multiple journals on multiple folders on OneDrive & GoogleDrive and they all work and sync.. I simple override the workspace JSON property Journal:Base

few things to look out for are:

pajoma commented 2 years ago

@olgv Did the solutions by @dokie and @mameen work out for you?