You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to support org-roam-mode? I noticed that ace-link-org correctly detects links in an org-roam-mode buffer (the buffer that is created when one runs e.g. org-roam-buffer-toggle). But because ace-link-org tries to open the link with org-open-at-point, it fails with the error
org-element-at-point: ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer *org-roam*> (org-roam-mode)
The function needed to open links in an org-roam-mode buffer is org-roam-preview-visit.
Something like this would work:
(defunace-link-org-roam ()
"Open a visible link in an `org-roam-mode' buffer."
(interactive)
(require'org-roam)
(let ((pt (avy-with ace-link-org
(avy-process
(mapcar#'cdr (ace-link--org-collect))
(avy--style-fn avy-style)))))
(ace-link--org-roam-action pt)))
(defunace-link--org-roam-action (pt)
(when (numberp pt)
(goto-char pt)
(call-interactively#'org-roam-preview-visit)))
The text was updated successfully, but these errors were encountered:
benthamite
changed the title
support for org-roam-mode
[feature request] support for org-roam-modeNov 12, 2023
Would it be possible to support
org-roam-mode
? I noticed thatace-link-org
correctly detects links in anorg-roam-mode
buffer (the buffer that is created when one runs e.g.org-roam-buffer-toggle
). But becauseace-link-org
tries to open the link withorg-open-at-point
, it fails with the errorThe function needed to open links in an
org-roam-mode
buffer isorg-roam-preview-visit
.Something like this would work:
The text was updated successfully, but these errors were encountered: