Commit graph

166 commits

Author SHA1 Message Date
Adam Porter
5a031bf5c1 Fix: (org-ql--select) Bind case-fold-search only around preamble
Fixes #114.  Thanks to @bitclick for reporting.

Released as 0.4.5.
2020-05-01 06:27:30 -05:00
Adam Porter
4fef5b089f Fix/Revert: Don't derive a new mode; check a variable in refresh
Using a different major mode in org-ql-view buffers causes some Org Agenda
remote commands to not work, because they test whether the major mode
is org-agenda-mode.  Even though these remote commands are not
guaranteed to work, it was not intended to break them now, so this
restores compatibility with them.

Fixes #102.  Thanks to Alois Janíček (@aloisjanicek) for reporting.

This reverts commit ba7d4a2e82.

Released as 0.4.4.
2020-03-15 15:02:52 -05:00
Adam Porter
ba7d4a2e82 Add/Fix: org-ql-view-mode, and check when refreshing
Use a derived major mode for org-ql-view buffers, and ensure that mode
is active when calling org-ql-view-refresh, to avoid interfering with
buffers in other modes if the user calls the command by accident.

See
<b87156f2bb>.
Thanks to Alois Janíček (@AloisJanicek) for discovering the bug.

Released as 0.4.3.
2020-03-14 14:06:42 -05:00
Adam Porter
4b1e253ee9 Fix: (org-ql-view--add-todo-face) Always return to-do keyword
Even when org-done-keywords-for-agenda is nil.  I'm not sure when this
was broken, but the logic was wrong in this function, and this is the
intended behavior, so this is a bug fix.

Released as 0.4.2.
2020-02-26 19:11:40 -06:00
Adam Porter
32c68d7f24 Fix: (--pre-process-query) level predicate with args in plain query
Fixes #96.  Thanks to Akira Komamura (@akirak) for reporting.

Released as 0.4.1.
2020-02-23 23:22:11 -06:00
Adam Porter
538373bb48 Release: 0.4 2020-01-22 23:39:25 -06:00
Adam Porter
6e55723e27 Docs: Clarify change notice 2020-01-22 23:38:34 -06:00
Adam Porter
843564ad8c Add: (org-ql-views) Dangling tasks view 2020-01-22 23:34:34 -06:00
Adam Porter
8f2baa10a3 Docs: Fix ToC, info file 2020-01-22 23:34:34 -06:00
Adam Porter
22cacbd8fe Docs: Add credit 2020-01-22 23:34:34 -06:00
Adam Porter
0e1196fd6f Tidy/Docs/Comment: Ancestor/descendant predicates 2020-01-22 23:34:25 -06:00
Josh Moller-Mara
65fb37c30d Add: parent and ancestors predicates
These predicates are analogs to the existing "children" and
"descendents" predicates.

They may be useful for testing parents for specific todo states, or if
they have non-inherited tags (i.e. tags from
"org-tags-exclude-from-inheritance").
2020-01-22 23:32:24 -06:00
Adam Porter
b8a4a53983 Change: (org-ql-views/Stuck projects) Use descendants, not children 2020-01-22 23:24:54 -06:00
Adam Porter
dc26e938fa Fix: (org-ql-block) Autoloads
Fixes #53.  Thanks to reports from Gus Cantieni (@gcantieni), Karl
Voit (@novoid), rieje (@rieje), and Jake | Junxuan (@jakejx).
2020-01-22 18:07:43 -06:00
Adam Porter
b00949d945 Docs: (priority) Update docstring
Fixes #81.  Thanks to Ihor Radchenko (@yantar92).
2020-01-22 17:37:28 -06:00
Adam Porter
79d9bd59cf Docs: Add note about 0.5 changes 2020-01-22 17:23:00 -06:00
Jeff Filipovits
154d3bc949 Fix: (org-ql-select) Sorting with single atom sorter
Closes #90.  Thanks to Jeff Filipovits (@legalnonsense).
2020-01-22 17:15:13 -06:00
Adam Porter
6beada4912 Change: (org-ql-views) Mouseover text, view names 2020-01-22 17:02:44 -06:00
Adam Porter
610b1179c6 Add: (org-ql-view-sidebar-sort-views) 2020-01-22 17:01:03 -06:00
Adam Porter
b7a33170a1 Fix: (org-ql-view--buffer) Set buffer-read-only
Fixes #72.  Thanks to @xeijin.
2020-01-19 00:04:14 -06:00
Adam Porter
b3601cf0ae Add: (org-ql-block) Respect Org Agenda restrictions
Fixes #84.  Thanks to Ihor Radchenko (@yantar92) for reporting.
2020-01-18 23:32:35 -06:00
Adam Porter
0a7e4f349f Add: (org-ql-view-refresh) Message on refresh
Closes #71.  Thanks to @xeijin.

Squashed commit of the following:

commit edac9c6960
Author: Adam Porter <adam@alphapapa.net>
Date:   Sat Jan 18 20:24:28 2020 -0600

    Adjust message, indentation, add changelog entry

commit 6a263e34ff
Author: xeijin <xeijin@users.noreply.github.com>
Date:   Fri Jan 3 19:08:10 2020 +0000

    removing view title

commit fc37e3f146
Author: xeijin <xeijin@users.noreply.github.com>
Date:   Mon Dec 9 22:47:00 2019 +0000

    confirmation message for org-ql-view-refresh

    In keeping with the message displayed by `g` when refreshing an
    org-agenda buffer - if nothing has changed in an `org-ql` buffer
    it can sometimes be difficult to determine if the refresh took
    place at all.
2020-01-18 20:34:13 -06:00
Adam Porter
c4f9a58fd6 Docs: Improve ToCs 2020-01-10 10:36:35 -06:00
Adam Porter
9f5bbeb3f2 Fix: Inherit org-file-tags
Fixes #55.  Closes #57.

Thanks to Mikhail Skorzhinskiy (@mskorzhinskiy).
2020-01-08 10:58:55 -06:00
Yiming Chen
6004ab98da Fix: (view--add-todo-face) Bind org-done-keywords
org-get-todo-face uses org-done-keywords, which is a buffer-local
variable, so it may be nil in the context that
org-ql-view--add-todo-face is called.  See,
e.g. org-agenda-highlight-todo, which does the same thing.

Thanks to Yiming Chen (@dsdshcym).
2020-01-03 03:45:20 -06:00
Feng Shu
b9dfd7d93b Add: (regexp) Alias "r"
Thanks to Feng Shu (@tumashu).
2019-12-19 13:12:23 -06:00
Adam Porter
70a1acde93 Docs: Tidy changelog for 0.4.0-pre 2019-12-06 22:08:52 -06:00
Adam Porter
d7fe019d6a Fix: (helm-source-org-ql-views) Call helm-make-source directly
Avoids macro expansion issues if Helm is not yet loaded.

Fixes #60.  Thanks to @matthuszagh for reporting.
2019-11-29 21:08:22 -06:00
Adam Porter
d3272cdd8b Add: (view--display) Insert newline at end of buffer
Prevents end-of-buffer from scrolling the window horizontally.

Fixes #50.  Thanks to @xeijin for suggesting.
2019-11-05 15:41:15 -06:00
Adam Porter
0d6523f85b Add: (heading) Alias "h" 2019-10-19 02:10:04 -05:00
Adam Porter
d5c26b7f60 Merge: 0.3.2 2019-10-19 02:01:13 -05:00
Adam Porter
2274efce07 Release: 0.3.2 2019-10-19 01:55:35 -05:00
Adam Porter
7a4a41e402 Fix: Quoted phrase plain-string queries 2019-10-19 01:55:33 -05:00
Adam Porter
43b94dd4a8 Fix: (org-ql-views) Beginning/end-of-week timestamp times 2019-10-19 01:08:44 -05:00
Adam Porter
f2910261e2 Fix: (org-ql-search) Accept symbol as arg to :super-groups 2019-10-19 01:08:42 -05:00
Adam Porter
949a06c3ab Add: Negation in plain queries 2019-10-09 19:05:11 -05:00
Adam Porter
6b2004e678 Change/Fix: (src) predicate
Use keyword args, fix non-sexp syntax and searching.
2019-10-09 17:21:47 -05:00
Adam Porter
af0ef304e1 Merge: 0.3.1 2019-10-09 15:17:54 -05:00
Adam Porter
60ebad21f4 Fix: Compatibility with Org 9.2
Thanks to Brian Leung (@leungbk).  See #49.

Released as 0.3.1.
2019-10-09 15:15:13 -05:00
Adam Porter
37ba30c969 Add: src predicate 2019-10-09 14:23:29 -05:00
Adam Porter
da9be83326 Add: helm-org-ql-views, helm-source-org-ql-views 2019-10-08 16:45:41 -05:00
Adam Porter
553c22c3ac Add: Adjust search parameters in view buffers 2019-10-07 22:44:56 -05:00
Adam Porter
7fa0d83a54 Add: helm-org-ql-source, org-ql-search-directories-files, etc. 2019-10-07 20:08:01 -05:00
Adam Porter
34cdbd5c87 Docs: Add info manual
Updating readme accordingly, based on org-super-agenda's, which is
based on Magit's and Org's.
2019-10-07 19:53:11 -05:00
Adam Porter
c06e5518eb Add: Predicates outline-path, outline-path-segment 2019-10-07 19:53:10 -05:00
Adam Porter
8d680a8e79 Add: node-value-cache, --value-at
Not used for anything in this comment, but will be in the outline-path
predicates.  Also should probably use it for the tags cache.
2019-10-07 19:52:02 -05:00
Adam Porter
2a5ec2e4fd Meta: 0.4-pre 2019-10-07 10:12:13 -05:00
Adam Porter
01a3bc0a1c Release: 0.3 2019-10-06 00:48:24 -05:00
Adam Porter
0ed0ff6f6e Fix: (org-ql-search) Interactive completion 2019-10-06 00:48:09 -05:00
Adam Porter
f4918b19dc Merge: wip/helm-query-rewriting
It's finally time to merge this branch, which adds non-sexp queries,
updates the readme, and a few other things.

Squashed commit of the following:

commit ee54e31dfa2c3335e4ef5498fc9714ddc093968b
Author: Adam Porter <adam@alphapapa.net>
Date:   Sun Oct 6 00:10:19 2019 -0500

    WIP: Depend-on/Require dash-functional

commit 42f6a47d86dfb7f8e96f3b1822e17a3eed825897
Author: Adam Porter <adam@alphapapa.net>
Date:   Sat Oct 5 23:45:06 2019 -0500

    WIP: Update docs

commit eb56e46ed8cd9ad6874dc955375be5efadb4fcf2
Author: Adam Porter <adam@alphapapa.net>
Date:   Sat Oct 5 22:04:24 2019 -0500

    WIP: Add demo script

commit cdd394f4865cd49791b2fbebb1913d9210aeaf35
Author: Adam Porter <adam@alphapapa.net>
Date:   Sat Oct 5 20:24:44 2019 -0500

    WIP: Update demo GIF

commit 7f470a7c3c7612b7718dc26044069dc2a6afdff3
Author: Adam Porter <adam@alphapapa.net>
Date:   Sat Oct 5 13:02:09 2019 -0500

    WIP: (property) Convert keyword properties to strings

    I'm a little uncomfortable with how query parsing and processing is
    getting spread out among 2 or 3 functions, but handling this in the
    plain-query parsing function would require uglier special-case
    workarounds, so this seems like the best solution for now.

commit 4e494a03f29a1d0068daa9cddf095dba15252133
Author: Adam Porter <adam@alphapapa.net>
Date:   Fri Oct 4 16:25:00 2019 -0500

    WIP: Handle query errors, move code, add tags-all, tags& aliases

    This prevents query compilation errors from displaying a warning
    buffer, especially in the Helm command.

    Close to done, but now need to figure out the "property:" predicate,
    because its value argument looks like an alternative property rather
    than a value, e.g. "property:agenda-group,plans" in which "plans" is
    the value for the property "agenda-group".

commit 9d8222d8fa9a584b1ee648c5aa38999200e7c54f
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 22:18:29 2019 -0500

    WIP: Rewrite (priority) predicate to accept multiple priorities

    This commit also fixes a latent bug in the preamble for (priority), which
    wasn't being hit because the query (priority) was being rewritten by
    pre-process to (priority '>= C).

commit 4900470ba52b0fcf4786ab857e316403dec00481
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 20:41:54 2019 -0500

    WIP: More documentation

commit 5041a901f6c1071a4233e5671a0926e65e29a5c0
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 12:30:50 2019 -0500

    WIP: Mention query types for commands

commit bb2d18532cb972a54b5b9056b76b0582eb4cad03
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 11:01:56 2019 -0500

    WIP: Remove old code

commit 8de048e531bfa9ba7058e7d540aae2d332f9be68
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 11:01:03 2019 -0500

    WIP: TODO done

commit 6a38fc845aeb05fe3f03174c04a7011830873705
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 10:59:45 2019 -0500

    WIP: Tidy docstrings

commit 04d0c254fc8694b1363c91a1691f3303fcf7755a
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 10:58:21 2019 -0500

    WIP: Document plain queries

commit 23dcc9bad4a8e6660e48632a20a04adb2654e20d
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 10:27:41 2019 -0500

    WIP: Move ts aliases into defpreds, improve docstrings and comments

commit 6ef710f25bbd430b56ce205b8f314b17cd9ac7c3
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 10:11:17 2019 -0500

    Tidy: Whitespace

commit 1022c4b36fb03a6724d97ba4dd1b5bb68025ed7b
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 10:01:53 2019 -0500

    WIP: (org-ql-search) Accept plain queries

    This way, helm-org-ql and org-ql-search accept queries in the same
    format.

commit 1903e8f5684269c272a2ff3984d4d262f41323c5
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 09:22:35 2019 -0500

    WIP: Add more plain-query tests

commit 9d58e3395e871f3536296ccfbb3901f98416bd9a
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 09:17:07 2019 -0500

    WIP: Return boolean from --plain-query, and only when needed

commit 3770e18e68eaf776aef6fbb94e6ac5648c869c12
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 08:59:55 2019 -0500

    WIP: Parse numbers in key/value args

    e.g. "ts-a:on=-1" for yesterday, or "ts:on=0" or "ts:on=today" for
    today.

commit 0f2b71bb869980f413c7366d1b15fa35f3f6a1c5
Author: Adam Porter <adam@alphapapa.net>
Date:   Thu Oct 3 08:59:43 2019 -0500

    WIP: Rename plain-query function

commit be410a36f4a1c043de24a2d0d2fbbe22135c3385
Author: Adam Porter <adam@alphapapa.net>
Date:   Wed Oct 2 19:21:07 2019 -0500

    WIP: Reverse query properly

    PEG returns queries backwards for some reason, so reverse them back to
    the order they were input in.

commit c184091ac2e96a76696055509ca6245e9a020b03
Author: Adam Porter <adam@alphapapa.net>
Date:   Wed Oct 2 19:17:20 2019 -0500

    WIP: Fix previous commit

    Something weird happens when defining the function that's defined by
    the macro in the eval-when block: It seems that I have to eval it
    twice before it takes effect.  So when I made the previous commit, the
    function defined at the time was working properly, but the function
    defined at the time was apparently not what was written in the file,
    but some intermediate state that had been written before, so I don't
    even know what the code was that was working properly.

    After some more fiddling, this seems to work properly.

commit 4e7288d494c6cfe69f82f3aea4b88feced7232f7
Author: Adam Porter <adam@alphapapa.net>
Date:   Wed Oct 2 18:42:59 2019 -0500

    WIP: Handle keyword/value queries

commit f603d199f47c1115cf11f8661c19c73f056b414d
Author: Adam Porter <adam@alphapapa.net>
Date:   Tue Oct 1 16:45:33 2019 -0500

    WIP: Define pred aliases and input-query function with macros

commit 217ef7dff13e8464baaa50539c82843e48bc3fe8
Author: Adam Porter <adam@alphapapa.net>
Date:   Tue Oct 1 16:16:04 2019 -0500

    WIP: Tidy: Don't quote the lambda

    I don't even know why I did that.

commit 3130f6519d7c21e47a026404e3929f118b003092
Author: Adam Porter <adam@alphapapa.net>
Date:   Fri Sep 27 23:20:50 2019 -0500

    WIP: Parsing with peg

    Seems to be working pretty well.

commit 0762825c7ba8026768aec74b4fffd32b8530c42c
Author: Adam Porter <adam@alphapapa.net>
Date:   Tue Sep 10 16:17:50 2019 -0500

    WIP: Rewriting Helm queries

    Some people are unaccustomed to parentheses, so we'll try to
    accommodate them.
2019-10-06 00:17:14 -05:00