From 78ef6cbc1f1f0149f8f1f0367f5595b12c52456a Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 31 Jul 2021 18:45:22 +0200 Subject: added clicking without org-protocol --- org-roam-ui.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'org-roam-ui.el') 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) -- cgit v1.2.3