unotes icon indicating copy to clipboard operation
unotes copied to clipboard

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

Open moocan opened this issue 3 years ago • 1 comments

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

moocan avatar Mar 01 '21 01:03 moocan

I want this feature too!!

vfxturjo avatar Sep 27 '22 07:09 vfxturjo

This is supported in v1.5.0

ryanmcalister avatar Dec 02 '22 16:12 ryanmcalister