Fix: (org-ql-select) Sorting with single atom sorter
Closes #90. Thanks to Jeff Filipovits (@legalnonsense).
This commit is contained in:
parent
9bd1235e00
commit
154d3bc949
3 changed files with 16 additions and 13 deletions
|
|
@ -411,6 +411,7 @@ Expands into a call to ~org-ql-select~ with the same arguments. For convenience
|
||||||
+ Search/view buffers now always end with a newline, which prevents side-scrolling of the window when calling =end-of-buffer=.
|
+ Search/view buffers now always end with a newline, which prevents side-scrolling of the window when calling =end-of-buffer=.
|
||||||
+ Face for done to-do keywords in =org-ql-view= buffers. (Thanks to [[https://github.com/dsdshcym][Yiming Chen]].)
|
+ Face for done to-do keywords in =org-ql-view= buffers. (Thanks to [[https://github.com/dsdshcym][Yiming Chen]].)
|
||||||
+ Make view buffers read-only. (Fixes [[https://github.com/alphapapa/org-ql/issues/72][#72]]. Thanks to [[https://github.com/xeijin][xeijin]].)
|
+ Make view buffers read-only. (Fixes [[https://github.com/alphapapa/org-ql/issues/72][#72]]. Thanks to [[https://github.com/xeijin][xeijin]].)
|
||||||
|
+ Sorting with single sorter specified as an atom. (Thanks to [[https://github.com/legalnonsense][Jeff Filipovits]].)
|
||||||
|
|
||||||
*Internal*
|
*Internal*
|
||||||
+ Added generic node data cache to speed up recursive, tree-based queries.
|
+ Added generic node data cache to speed up recursive, tree-based queries.
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,7 @@ returns nil or non-nil."
|
||||||
(pcase sort
|
(pcase sort
|
||||||
(`nil items)
|
(`nil items)
|
||||||
((or 'date 'deadline 'scheduled 'todo 'priority 'random
|
((or 'date 'deadline 'scheduled 'todo 'priority 'random
|
||||||
(guard (cl-loop for elem in sort
|
(guard (cl-loop for elem in (-list sort)
|
||||||
always (memq elem '(date deadline scheduled todo priority random)))))
|
always (memq elem '(date deadline scheduled todo priority random)))))
|
||||||
;; Default sorting functions
|
;; Default sorting functions
|
||||||
(org-ql--sort-by items (-list sort)))
|
(org-ql--sort-by items (-list sort)))
|
||||||
|
|
|
||||||
26
org-ql.info
26
org-ql.info
|
|
@ -748,6 +748,8 @@ File: README.info, Node: 04-pre, Next: 032, Up: Changelog
|
||||||
• Make view buffers read-only. (Fixes #72
|
• Make view buffers read-only. (Fixes #72
|
||||||
(https://github.com/alphapapa/org-ql/issues/72). Thanks to xeijin
|
(https://github.com/alphapapa/org-ql/issues/72). Thanks to xeijin
|
||||||
(https://github.com/xeijin).)
|
(https://github.com/xeijin).)
|
||||||
|
• Sorting with single sorter specified as an atom. (Thanks to Jeff
|
||||||
|
Filipovits (https://github.com/legalnonsense).)
|
||||||
|
|
||||||
*Internal*
|
*Internal*
|
||||||
• Added generic node data cache to speed up recursive, tree-based
|
• Added generic node data cache to speed up recursive, tree-based
|
||||||
|
|
@ -1040,18 +1042,18 @@ Node: Agenda-like views18025
|
||||||
Node: Listing / acting-on results19430
|
Node: Listing / acting-on results19430
|
||||||
Node: Changelog24032
|
Node: Changelog24032
|
||||||
Node: 04-pre24569
|
Node: 04-pre24569
|
||||||
Node: 03227288
|
Node: 03227414
|
||||||
Node: 03127669
|
Node: 03127795
|
||||||
Node: 0327864
|
Node: 0327990
|
||||||
Node: 02330837
|
Node: 02330963
|
||||||
Node: 02231063
|
Node: 02231189
|
||||||
Node: 02131329
|
Node: 02131455
|
||||||
Node: 0231526
|
Node: 0231652
|
||||||
Node: 0135559
|
Node: 0135685
|
||||||
Node: Notes35658
|
Node: Notes35784
|
||||||
Node: Comparison with Org Agenda searches35820
|
Node: Comparison with Org Agenda searches35946
|
||||||
Node: org-sidebar36691
|
Node: org-sidebar36817
|
||||||
Node: License36970
|
Node: License37096
|
||||||
|
|
||||||
End Tag Table
|
End Tag Table
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue