pajoma / vscode-journal

Lightweight journal and simple notes support for Visual Studio Code

Home Page:https://marketplace.visualstudio.com/items?itemName=pajoma.vscode-journal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Save journal data to iCloud

olgv opened this issue · comments

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.

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

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.

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:

  • I check the option to [x] keep files locally
  • Sync frequency is different and unpredictable! the best one that works in few seconds is OneDrive
  • I have different work space for different platform-machine.. i.e. myProject1-MyLaptop.workspace, and myProject1-MyPC.workspace`

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