Graph States - ElsaTam/obsidian-extended-graph GitHub Wiki
Graph states allow you to save and restore specific configurations of your graph view. This is essential for maintaining consistent visualizations across sessions.
What Gets Saved
A graph state includes:
- Disabled tags
- Disabled properties
- Disabled link types
- Enabled folders
- Pinned node positions
- Core graph settings (search filter is not saved)
[!IMPORTANT] Manual Saving Required!
Changes to your graph configuration are not automatically saved. You must explicitly save your changes by clicking the save icon to preserve your current state.
Managing States
First, you must display the state management bar.
Saving a New State
- Configure your graph as desired
- Click the "add" icon
- Provide a name for your state
- Confirm to save
Loading States
- Select a previously saved state from the state menu
- The graph will update to match the saved configuration
Updating States
- Load an existing state
- Make your modifications
- Click the save icon to update the state
- Changes will overwrite the previous configuration
Starting state
By default, when enabling the extended graph view, no state is applied. You can change that in the plugin settings, with the "Starting state" dropdown.
Notes
Changing the default state
The default state is protected and cannot be modified through regular saving or deletion. However, you can update its core settings using the "Save for default state" button found in the graph controls.
When plugin is disabled
When you disable the plugin, the graph view reverts to its original settings - the ones that were in place before the plugin was enabled. If you want to preserve your current graph settings for use without the plugin, use the "Save for normal state" button in the graph controls. These settings will then become your new baseline when using the graph view without the plugin.