Change: (org-ql-find) Add workaround for Ivy support
See <https://github.com/alphapapa/org-ql/issues/284>.
This commit is contained in:
parent
98b6049ecc
commit
a02ed48ac8
1 changed files with 10 additions and 0 deletions
|
|
@ -83,6 +83,12 @@ For an experience like `org-rifle', use a newline."
|
|||
(defface org-ql-find-snippet '((t (:inherit font-lock-comment-face)))
|
||||
"Snippets.")
|
||||
|
||||
;;;; Variables
|
||||
|
||||
;; TODO: When Ivy no longer requires this workaround, remove it. See
|
||||
;; <https://github.com/alphapapa/org-ql/issues/284>.
|
||||
(defvar ivy-completing-read-dynamic-collection)
|
||||
|
||||
;;;; Functions
|
||||
|
||||
;;;###autoload
|
||||
|
|
@ -209,6 +215,10 @@ single predicate)."
|
|||
(mapc #'org-ql--ensure-buffer buffers-files)
|
||||
(let* ((completion-styles '(org-ql-find))
|
||||
(completion-styles-alist (list (list 'org-ql-find #'try #'all "Org QL Find")))
|
||||
;; TODO: When Ivy no longer requires this workaround,
|
||||
;; remove it and the corresponding defvar. See
|
||||
;; <https://github.com/alphapapa/org-ql/issues/284>.
|
||||
(ivy-completing-read-dynamic-collection t)
|
||||
(selected (completing-read prompt #'collection nil))
|
||||
(marker (gethash selected table)))
|
||||
(with-current-buffer (marker-buffer marker)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue