fix(org): don't auto-open roam buffer if in capture popup
This commit is contained in:
parent
10bbdecb5c
commit
dd33f57513
1 changed files with 3 additions and 2 deletions
|
@ -95,8 +95,9 @@ In case of failure, fail gracefully."
|
||||||
(add-hook! 'org-roam-find-file-hook :append
|
(add-hook! 'org-roam-find-file-hook :append
|
||||||
(defun +org-roam-open-with-buffer-maybe-h ()
|
(defun +org-roam-open-with-buffer-maybe-h ()
|
||||||
(and +org-roam-open-buffer-on-find-file
|
(and +org-roam-open-buffer-on-find-file
|
||||||
(not org-roam-capture--node) ;; don't proc for roam capture buffers
|
(not org-roam-capture--node) ; not for roam capture buffers
|
||||||
(not org-capture-mode) ;; don't proc for normal capture buffers
|
(not org-capture-mode) ; not for capture buffers
|
||||||
|
(not (bound-and-true-p +popup-buffer-mode))
|
||||||
(not (eq 'visible (org-roam-buffer--visibility)))
|
(not (eq 'visible (org-roam-buffer--visibility)))
|
||||||
(org-roam-buffer-toggle))))
|
(org-roam-buffer-toggle))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue