Fix: (org-ql-select) Don't search hidden/special buffers
This commit is contained in:
parent
b634647e46
commit
3856e61800
2 changed files with 4 additions and 1 deletions
|
|
@ -156,7 +156,9 @@ non-nil."
|
|||
;; It feels unintuitive that `find-file-noselect' returns
|
||||
;; a buffer if the filename doesn't exist.
|
||||
(find-file-noselect it))
|
||||
(user-error "Can't open file: %s" it)))))))
|
||||
(user-error "Can't open file: %s" it)))))
|
||||
;; Ignore special/hidden buffers.
|
||||
(--remove (string-prefix-p " " (buffer-name it)))))
|
||||
(query (org-ql--pre-process-query query))
|
||||
((query preamble-re) (org-ql--query-preamble query))
|
||||
(predicate (org-ql--query-predicate query))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue