obsidian-projects icon indicating copy to clipboard operation
obsidian-projects copied to clipboard

Option to Store Project Configuration in Project Folder (or Vault).

Open jeetsukumaran opened this issue 2 years ago • 4 comments

What would you like to be added?

I would like to have the option to be able to store the project configuration outside of the .obsidian hierarchy.

One approach might be a plugin-wide or per-project setting, where the user can choose for "Project Configuration Data": "default" ("data.json" in plug-in directory), "project folder" (for projects with data source in the folder), or "in folder I specify below" (e.g, "annex/projects/data").

Why is this needed?

I version-control my vault and vault configuration (.obsidian/**) separately. This allows me to sync the configuration across different vaults easily (I .gitignore the Obsidian workspace data .obsidian/workspace). I can add this plugin's data.json to the ./obsidian/.gitignore file as well. But it would be nice to version-control/backup the project configuration as part of the Vault content as needed.

I LOVE the design philosophy of this project and recognize that this FR might violate the "Leave No Trace" principle. But with my suggestion, the clutter remains outside of notes, and can be seen as a sort of middle-level "infrastructure" of a vault like templates etc.

With this feature, at least for selected projects (with particularly complex setups), we can version-control/backup the configuration cleanly, maintaining connection to the content (e.g., fields, data sources ).

jeetsukumaran avatar Feb 03 '23 20:02 jeetsukumaran

The same for me here

Doodidan avatar Feb 13 '23 13:02 Doodidan

I don't think this violates the design principle. Like you say, this doesn't affect the notes themselves. This seems to simply be a matter of where to store the project configuration file.

I agree we should solve this, but I'd like to make sure the solution aligns with #77.

marcusolsson avatar Mar 15 '23 10:03 marcusolsson

I agree with this 100%. I use projects on multiple devices and having to reconfigure each project on each device is annoying.

s-taylor avatar Mar 19 '25 01:03 s-taylor

I agree with this 100%. I use projects on multiple devices and having to reconfigure each project on each device is annoying.

@s-taylor For now to sync project settings you need to sync filre .obsidian/plugins/obsidian-projects/data.json

If you use git, add this to .gitignore at root:

.obsidian/*
!.obsidian/plugins/
.obsidian/plugins/*
!.obsidian/plugins/obsidian-projects/
.obsidian/plugins/obsidian-projects/*
!.obsidian/plugins/obsidian-projects/data.json

Doodidan avatar Mar 19 '25 10:03 Doodidan