obsidian-card-board icon indicating copy to clipboard operation
obsidian-card-board copied to clipboard

data.json lost on first use of plugin

Open thetooth opened this issue 1 year ago • 3 comments

Not quiet sure how this would happen, but if I clone my vault to a new location on the very first time opening the cardboard view the data.json file is reinitialised and I'm asked to create the first board. After doing this, reverting the file to the last commit I can open the cardboard and have it load the contents of the data file. If I don't follow the tutorial prompt then the file is still modified and all of my board configuration is lost. It ONLY happens the very first time the plugin is triggered so some state is not being preserved within the .obsidian folder, consecutive openings across multiple machines or locations on the same machine don't cause this.

I can reproduce it consistently just by cloning to a new location. I have checked and there aren't any .gitignore entries that would touch the .obsidian folder so it's bit strange.

thetooth avatar Jul 15 '23 08:07 thetooth

Hiya - could you let me know what you mean by "clone my vault". If I copy one of my vault folders to another location on my hard disk and open it, the cardboard settings are preserved. I am on a Mac and am using the Duplicate option in the finder to duplicate a vault directory, then opening that folder as a vault.

roovo avatar Nov 19 '23 14:11 roovo

Using git clone command or github desktop app.

thetooth avatar Nov 20 '23 00:11 thetooth

I'm stil a little confused as to what is happening here. It would be helpful for debugging if you could create a small test vault which demonstrates the problem and stick it on github so I can clone it and have a look. Many thanks

roovo avatar Dec 30 '23 17:12 roovo