summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-31 18:45:22 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-31 18:45:22 +0200
commit78ef6cbc1f1f0149f8f1f0367f5595b12c52456a (patch)
treebfadf4efbc975ef2b075ed01cda56b20b71f3130 /org-roam-ui.el
parent05cbc50ef707e9ac10dc02c56acbb954ffbb3e24 (diff)
added clicking without org-protocol
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)