summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r--org-roam-ui.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el
index aef871b..f259670 100644
--- a/org-roam-ui.el
+++ b/org-roam-ui.el
@@ -128,6 +128,10 @@ This serves the web-build and API over HTTP."
(message "Connection established with org-roam-ui")
(when org-roam-ui-follow
(org-roam-ui-follow-mode 1))))
+ :on-message (lambda (_websocket frame)
+ (org-roam-node-visit
+ (org-roam-populate (org-roam-node-create
+ :id (websocket-frame-text frame)))))
:on-close (lambda (_websocket)
(remove-hook 'after-save-hook #'org-roam-ui--on-save)
(org-roam-ui-follow-mode -1)