Commit graph

90 commits

Author SHA1 Message Date
Adam Porter
8f2a02264f Add/Fix: Set case-fold for preambles
And use for (todo) preambles.
2019-09-18 01:33:15 -05:00
Adam Porter
9bc3138ff8 Tests: Add (heading) 2019-09-11 22:07:59 -05:00
Adam Porter
5574f33682 Change: (regexp) Match all regexps
This seems more useful, because it makes it easier to narrow down
results, which is the most common way to search.
2019-09-11 21:59:39 -05:00
Adam Porter
ea2ed02c84 Add: (path) predicate 2019-09-09 14:08:48 -05:00
Adam Porter
deb78e51c7 Merge: 0.2.1 2019-09-09 09:07:44 -05:00
Adam Porter
55694f17fc Fix: (descendants) matched against parent heading
It matched against parent headings instead of only descendants, which
caused some queries to return incorrect results.

Released as 0.2.1.
2019-09-09 09:05:13 -05:00
Adam Porter
f55aae782c Add: tags-all, tags& 2019-09-05 15:51:40 -05:00
Adam Porter
ca9ab3e6a5 Add: Tag cache, inherited/local tags predicates 2019-09-05 15:51:40 -05:00
Adam Porter
ad9de23987 Comment: Update some to-dos 2019-08-31 23:28:12 -05:00
Adam Porter
a99759d4d9 Add: (priority) Preambles and plain predicate style 2019-08-25 23:24:53 -05:00
Adam Porter
ed32701772 Change/Fix: Restore today arguments to ts-related predicates
Also, DRY some code into a macro.  Much cleaner.
2019-08-19 03:30:38 -05:00
Adam Porter
49d0fa8306 Add: Timestamp selectors :on a number
This ought to be pretty thorough now.
2019-08-19 03:30:37 -05:00
Adam Porter
ab3d1178b9 Add: Call some ts-type predicates with a number/auto 2019-08-19 03:30:37 -05:00
Adam Porter
26a8c3d5dc Tests: Add convenient comment 2019-08-18 20:27:11 -05:00
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
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
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
1c5bf06804 Tests: Add (habit) 2019-08-09 17:18:56 -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
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
8a8b74f141 Add: (tags) Preamble and tests
Only enabled when org-use-tag-inheritance is enabled.
2019-07-26 16:39:29 -05:00
Adam Porter
81ef7adbca Tests: Change description 2019-07-26 16:39:29 -05:00
Adam Porter
290e25509b Tests: Use org-ql-it in more tests 2019-07-26 16:39:29 -05:00
Adam Porter
70176d9c5f Add: Convert bare strings to (regexp) predicates 2019-07-26 16:38:54 -05:00
Adam Porter
bdf473356d Change: Improve level predicate
Now accepts e.g. (level 2 4) to match headings from levels 2-4,
inclusive.

Also add tests for (level) preamble conversion.
2019-07-23 23:55:49 -05:00
Adam Porter
99b38d131e Tests: Add org-ql-it macro
Tests with and without preamble, ensuring they give the same results.
Very important.  And macros make this so easy to do.
2019-07-23 19:03:33 -05:00
Adam Porter
dbb94ff3b8 Tests: Use xr to help format test results 2019-07-23 19:01:16 -05:00
Adam Porter
014e0f1388 Tests: Add (todo) tests 2019-07-16 12:38:58 -05:00
Adam Porter
25ce89ca2c Tests: Add/change convenience commands 2019-07-16 12:38:58 -05:00
Adam Porter
7dcdc21ea1 Change: (regexp) Accept multiple regexps 2019-07-16 12:38:58 -05:00
Adam Porter
28fce8b871 Tests: Add (done) 2019-06-20 13:32:26 -05:00
Adam Porter
943bb6d6c0 Add: (ts) predicates, improved tests 2019-06-09 03:13:42 -05:00
Adam Porter
3d4ad1ab36 Add: Tests, Makefile, Cask 2019-06-08 23:52:03 -05:00