Change: (view--complete-sort) Separate with spaces, not comma
This commit is contained in:
parent
60d1bd1f97
commit
a459204e78
1 changed files with 15 additions and 10 deletions
|
|
@ -850,16 +850,21 @@ property."
|
|||
|
||||
(defun org-ql-view--complete-sort ()
|
||||
"Return value for `org-ql-view-sort' using completion."
|
||||
(let ((input (->> (completing-read-multiple "Sort by: "
|
||||
(list "buffer-order"
|
||||
"date"
|
||||
"deadline"
|
||||
"priority"
|
||||
"scheduled"
|
||||
"todo")
|
||||
nil nil (when org-ql-view-sort
|
||||
(prin1-to-string org-ql-view-sort)))
|
||||
(--remove (equal "buffer-order" it)))))
|
||||
;; Use space to separate sorting predicates, not comma.
|
||||
(let* ((crm-separator (rx space))
|
||||
(crm-local-completion-map (let ((map (copy-keymap crm-local-completion-map)))
|
||||
(define-key map (kbd "SPC") nil)
|
||||
map))
|
||||
(input (->> (completing-read-multiple "Sort by: "
|
||||
(list "buffer-order"
|
||||
"date"
|
||||
"deadline"
|
||||
"priority"
|
||||
"scheduled"
|
||||
"todo")
|
||||
nil nil (when org-ql-view-sort
|
||||
(prin1-to-string org-ql-view-sort)))
|
||||
(--remove (equal "buffer-order" it)))))
|
||||
(pcase input
|
||||
('nil nil)
|
||||
((and (pred listp) sort)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue