Commit graph

979 commits

Author SHA1 Message Date
Adam Porter
6b9b985c1e Change: Use ts for all timestamp-related selectors
This is much simpler, and it seems quite fast with the preambles.
2019-08-13 17:06:39 -05:00
Adam Porter
40b36ecad2 Comment: Add TODO 2019-08-13 17:02:38 -05:00
Adam Porter
1d69ab7b20 Fix: (org-ql-query) Indentation declaration 2019-08-13 16:26:56 -05:00
Adam Porter
9f8101779c Change: (ts) Accept ts structs 2019-08-13 16:08:10 -05:00
Adam Porter
559764aedd Comment: Remove task
Basically done.  Also, I think :from/:to/:on are ultimately better
than numeric comparators like <=, because it's easier to express a
range of dates.
2019-08-13 15:38:47 -05:00
Adam Porter
3856e61800 Fix: (org-ql-select) Don't search hidden/special buffers 2019-08-13 15:05:47 -05:00
Adam Porter
b634647e46 Fix: (org-ql--select) Don't search buffers without headings
Especially important when using org-ql-search to search "all" Org
buffers.
2019-08-13 14:37:27 -05:00
Adam Porter
76debff1c5 Add: Selectors (children) and (descendants) 2019-08-13 14:20:21 -05:00
Adam Porter
515b4960c4 Change: (todo) Don't match done tasks 2019-08-13 14:02:12 -05:00
Adam Porter
31bc01bc52 Fix: (org-ql--pre-process-query) Process (not) clauses 2019-08-13 13:48:56 -05:00
Adam Porter
b641e6d53c Comment: Add TODO 2019-08-13 13:19:08 -05:00
Adam Porter
2b47e7c7b0 Comment: Add FIXME 2019-08-13 13:14:11 -05:00
Adam Porter
5174aca4e8 Tidy: (org-ql-agenda--format-element) 2019-08-12 20:46:35 -05:00
Adam Porter
e97d2c0af3 Add: org-ql-agenda-face 2019-08-12 20:45:44 -05:00
Adam Porter
fbdfe58a08 Notes: Add idea and results 2019-08-12 19:22:00 -05:00
Adam Porter
1b83c16426 Notes: Add idea 2019-08-12 18:25:42 -05:00
Adam Porter
a425c45afd Add: ts preambles 2019-08-11 16:40:05 -05:00
Adam Porter
4954789ca5 Add/Change: Use ts.el, add ts-a and ts-i
Improves performance, reduces code, and more test cases added.
2019-08-11 16:39:36 -05:00
Adam Porter
913292787b Tests: Query functions/macros
Test a few basic forms of these to ensure, e.g. that arguments don't
get broken.
2019-08-11 11:36:37 -05:00
Adam Porter
b5f9087e58 Tests: Update makem.sh 2019-08-11 11:34:52 -05:00
Adam Porter
1ca5930b2f Tidy: (org-ql-query) Indentation 2019-08-11 11:02:46 -05:00
Adam Porter
a77e60640b Fix: (org-ql-query) Argument
Oops.
2019-08-11 10:41:48 -05:00
Adam Porter
c615fbd73f Docs: -query args 2019-08-10 10:21:37 -05:00
Adam Porter
6abb2ae8c0 Docs: Improve examples 2019-08-10 10:18:29 -05:00
Adam Porter
ab0df68aae Add: (org-ql-query) narrow, order-by 2019-08-10 10:18:03 -05:00
Adam Porter
bd3ab6fb02 Notes: Add idea 2019-08-10 07:10:07 -05:00
Adam Porter
2cdc210645 Add: (habit) preamble 2019-08-09 17:19:07 -05:00
Adam Porter
1c5bf06804 Tests: Add (habit) 2019-08-09 17:18:56 -05:00
Adam Porter
867bf4edcc Docs: Add note about (property) inheritance 2019-08-09 17:12:27 -05:00
Adam Porter
13993f1394 Add: (closed) preamble 2019-08-09 17:10:03 -05:00
Adam Porter
cd4f3cc99b Add: (scheduled) preamble 2019-08-09 17:07:49 -05:00
Adam Porter
ed26effe1c Add: (deadline) preamble 2019-08-09 17:05:17 -05:00
Adam Porter
e7eb3b2031 Add: (property) Preambles 2019-08-09 16:47:56 -05:00
Adam Porter
b12d498cec Tests: Update helper functions 2019-08-09 16:47:01 -05:00
Adam Porter
cc92fccb7f Test: Simplify with org-ql-expect macro 2019-08-08 17:07:25 -05:00
Adam Porter
00d9bbd85b Tests: Add makem.sh, update Makefile 2019-08-08 15:51:51 -05:00
Adam Porter
2dbe40d9ea Fix: (org-ql-select) Accept special forms and macros in action 2019-08-08 15:51:51 -05:00
Adam Porter
d9b7647f5b Meta: Add .gitignore 2019-08-08 15:51:51 -05:00
Adam Porter
4970d441cc Change: (org-ql-agenda--format-element) Return empty string if nil
This allows mapping the function across elements which may be nil,
helping to separate items in agenda views by inserting nil between
them.
2019-08-08 15:51:51 -05:00
Adam Porter
7829238988 Add: (org-ql-agenda--agenda) Optionally specify entries directly
Should probably refactor this a bit more, but this is useful now.
2019-08-08 15:51:51 -05:00
Adam Porter
43545482a4 Docs: Add example 2019-08-08 15:51:51 -05:00
Adam Porter
bd56652c66 Add: org-ql-block
Usable as an Org Agenda custom command block type.  Inspired by
@pestctrl's custom config:

84c557982a/config-org-new.org (my-own-agenda-renderer)
2019-08-08 15:51:51 -05:00
Adam Porter
d37f7c3eea Fix: (org-ql-agenda--agenda) Don't overwrite org-agenda-mode-map 2019-08-08 09:32:02 -05:00
Adam Porter
b7932063a0 Fix: (org-ql-agenda--format-element) Extra indentation 2019-08-08 08:30:53 -05:00
Adam Porter
c4531b25a4 Fix: Compound queries with preamble
Bug was introduced in b5ccc32.
2019-08-08 08:29:26 -05:00
Adam Porter
4db4e411a0 Tests: Fix function definer
Works correctly interactively now.
2019-08-08 08:28:40 -05:00
Adam Porter
7e5cb33031 Tests: Require buttercup
Makes it easier to run interactively by eval'ing the buffer.
2019-08-08 08:28:10 -05:00
Adam Porter
51af2a16a7 Tests: Turn on truncate-lines and add to comment 2019-07-26 16:39:29 -05:00
Adam Porter
f8a9ae75e2 Notes: Add MAYBE 2019-07-26 16:39:29 -05:00
Adam Porter
f8a5dc353d Comment: Add/improve some comments 2019-07-26 16:39:29 -05:00