Fix org-capture popup rules for partials & non-org files

When a capture target didn't have an *.org file extension OR its buffer
was displayed before it was renamed to CAPTURE-* (e.g. while a capture
template prompts for input) the popup handler fails to capture the new
window, displaying it in other-window, rather than a popup.
This commit is contained in:
Henrik Lissner 2021-03-27 11:43:22 -04:00
parent 235db17742
commit 83e0451cba

View File

@ -887,7 +887,7 @@ between the two."
("^\\*Org Agenda" :ignore t)
("^\\*Org Src" :size 0.4 :quit nil :select t :autosave t :modeline t :ttl nil)
("^\\*Org-Babel")
("^CAPTURE-.*\\.org$" :size 0.25 :quit nil :select t :autosave ignore))))
("^\\*Capture\\*$\\|CAPTURE-.*$" :size 0.25 :quit nil :select t :autosave ignore))))
(defun +org-init-protocol-lazy-loader-h ()