Finding Workspace - How thorg determines workspace directory

On startup, Thorg needs to find your Thorg Workspace directory.

The workspace directory is expected to be somewhere up the file hierarchy from the starting paths.

The starting paths are determined as follows:

Starting paths are:
  IF vscode.workspace.workspaceFolders is NOT empty
    vscode.workspace.workspaceFolders
  ELSE
    path-of-the-file-you-have-opened
  END-IF

For now we use dendron.yml to find the workspace directory

Thorg walks up the parent file chain and looks for a dendron.yml file to identify the workspace directory.

In the near future we will use the .thorg directory to find the workspace

In the near future, we'll primarily identify the workspace using the .thorg Data in Thorg Workspace ($THORG_WORKSPACE/.thorg) directory (while continuing to support onboarding based on dendron.yml).


Backlinks