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

Can't change default journal location #95

Closed centuryhopper closed 2 years ago

centuryhopper commented 2 years ago

Greetings!

I have tried to change the location where my journals open up by following the instructions provided but it didn't work. What did I do wrong? I added this line into my settings.json: "journal.base": "C:/Users/MyName/Documents/GitHub/MyJournal",

mameen commented 2 years ago

Try to switch the back-slash? C:\Users\MyName\Documents\GitHub\MyJournal

pajoma commented 2 years ago

Yes, the writing with slash "/" is used n *nix-environments and URLs, in Windows you have to use the backslash. You can open the folder in Windows Explorer, navigate to your folder and copy the address at the top.

Thanks for the quick answer @mameen

centuryhopper commented 2 years ago

Try to switch the back-slash? C:\Users\MyName\Documents\GitHub\MyJournal

I have just tried that too and it didn't work, unfortunately :/

centuryhopper commented 2 years ago

Try to switch the back-slash? C:\Users\MyName\Documents\GitHub\MyJournal

I have just tried that too and it didn't work, unfortunately :/

what I typed is: "journal.base": "C:\Users\MyName\Documents\GitHub\MyJournal", it doesn't show, but I typed two slashes for each to escape it (otherwise the json file gives me an error).

pajoma commented 2 years ago

Hmm, this is strange. Is the command dir C:\Users\MyName\Documents\GitHub\MyJournal working (in the vscode terminal)?

mameen commented 2 years ago

You may need to escape it.. try double back-slash C:\\Users\\MyName\\Documents\\GitHub\\MyJournal

centuryhopper commented 2 years ago

The two slashes worked. Thank you everyone. I tried the two slashes before and it didn't work. I think it's because I have to restart vs code after doing so. Final working key-value pair: "journal.base": "C:\\Users\\MyName\\Documents\\GitHub\\MyJournal"

centuryhopper commented 2 years ago

Hmm, this is strange. Is the command dir C:\Users\MyName\Documents\GitHub\MyJournal working (in the vscode terminal)?

Yes. It does work