ryanmcalister / unotes

Unotes Visual Studio Code Extension. A markdown WYSIWYG notes editor.
MIT License
174 stars 22 forks source link

Feature Request: ${workspaceFolder} variable for unotes.RootPath #101

Closed moocan closed 1 year ago

moocan commented 3 years ago

Hello,

Thank you for this great extension.

I usually centralize my notes with each workspace, to keep related notes inside each project workspace. Each workspace has eg a .note folder.

I tried to use ${workspaceFolder} variable inside unotes.RootPath as ${workspaceFolder}/.note but I had errors as failed to create unotes folder and can't create folder and notes or edit notes. One of the VisualStudio Code variables is ${workspaceFolder} which is the full root path of the opened project workspace folder. This avoids using a fixed path which causes problems.

So if your projects workspaces are in /DATA/Project and you open Project-1 root folder, using ${workspaceFolder} it is automatically viewed by VS Code as /DATA/Project/Project-1. then if later you need to mount your project to /WORK/ the path is automatically updated using the variable and everything works without any modification of the settings.

It would be really great.

Regards

vfxturjo commented 2 years ago

I want this feature too!!

ryanmcalister commented 1 year ago

This is supported in v1.5.0