Skip to content

Conversation

@mkorat
Copy link

@mkorat mkorat commented Jan 30, 2026

Resolves #223

This pull requests adds a small feature to save and load the graph settings from the web-ui into a file in the org-roam-directory.

It enables different different org-roam "silos" to store individual graph configurations (such as tag colours) and also allows easier synchronization of settings across browsers or devices.

To achieve this goal, I have added a section to the tweaks sidebar with buttons for manually saving and loading the configuration. (see StoragePanel.tsx ).

Saving

The browsers local storage for org-roam-ui is copied into a JSON string and sent through the web-socket to the Emacs backend. It is then stored into a file in the current org-roam-directory (see org-roam-ui--on-msg-save-settings).

Loading

The Emacs backend serves the content of the local settings file through a servlet. The frontend clears the current local storage for org-roam-ui, writes the content of the received settings file into the local storage and reloads the webpage (see settings servlet and StoragePanel.tsx).

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

Successfully merging this pull request may close these issues.

[ENH] A way to import and export the settings

1 participant