mirror of
https://github.com/org-roam/org-roam
synced 2025-08-31 14:43:32 -05:00
(fix): allow org-roam-insert in Org-roam file indirect buffers (#266)
This commit is contained in:
@@ -741,7 +741,8 @@ GOTO and KEYS argument have the same functionality as
|
|||||||
"Find an Org-roam file, and insert a relative org link to it at point.
|
"Find an Org-roam file, and insert a relative org link to it at point.
|
||||||
If PREFIX, downcase the title before insertion."
|
If PREFIX, downcase the title before insertion."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(unless (org-roam--org-roam-file-p)
|
(unless (org-roam--org-roam-file-p
|
||||||
|
(buffer-file-name (buffer-base-buffer)))
|
||||||
(user-error "Not in an Org-roam file"))
|
(user-error "Not in an Org-roam file"))
|
||||||
(let* ((region (and (region-active-p)
|
(let* ((region (and (region-active-p)
|
||||||
;; following may lose active region, so save it
|
;; following may lose active region, so save it
|
||||||
|
Reference in New Issue
Block a user