Skip to content

Commit

Permalink
Add: (org-ql-find-display-buffer-action)
Browse files Browse the repository at this point in the history
  • Loading branch information
alphapapa committed Oct 7, 2022
1 parent e54ba01 commit 5f70636
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion org-ql-find.el
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
"Functions called when selecting an entry."
:type 'hook)

(defcustom org-ql-find-display-buffer-action '(display-buffer-same-window)
"Display buffer action list for `org-ql-find'.
See function `display-buffer'."
:type 'sexp)

;;;; Functions

;;;###autoload
Expand Down Expand Up @@ -80,7 +85,7 @@ single predicate)."
:prompt prompt)))
(with-current-buffer (marker-buffer marker)
(goto-char marker)
(display-buffer (current-buffer))
(display-buffer (current-buffer) org-ql-find-display-buffer-action)
(select-window (get-buffer-window (current-buffer)))
(run-hook-with-args 'org-ql-find-goto-hook))))

Expand Down

0 comments on commit 5f70636

Please sign in to comment.