Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost structure after renaming a folder #18

Open
mariusgerome opened this issue Jul 23, 2023 · 1 comment
Open

Lost structure after renaming a folder #18

mariusgerome opened this issue Jul 23, 2023 · 1 comment

Comments

@mariusgerome
Copy link

I'm displaying just one folder in my graph – my framework. After I've renamed this one, and updated the filter path of the graph, I tried to restore the saved position; but it was vanished.

@Sanqui
Copy link
Owner

Sanqui commented Jul 23, 2023

Hello, I'm sorry you ran into this issue. Persistent Graph identifies nodes by full file path, because Obsidian does allow for multiple files with the same filenames. Still, I can help you recover the structure if you haven't overwritten it yet.

  1. Close Obsidian
  2. Navigate to the following directory: <Path to Obsidian vault>/.obsidian/plugins/persistent-graph/
  3. Open the data.json file in a text editor.
  4. Perform a find and replace for "id": "<Old directory name>/ to "id": "<New directory name>/
  5. Save the file and start Obsidian again

Restoring the graph should now work again. Sorry about the trouble, and I will start thinking about how to better support directory renames in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants