Commit graph

813 commits

Author SHA1 Message Date
Ahmed Shariff
874d9d70d8 Inform users: repscting a func set to org-ql-view-buffers-files 2022-11-20 23:56:32 -08:00
Ahmed Shariff
2d68ef526d Adding test cases for buffers-files 2022-11-20 23:11:19 -08:00
Ahmed Shariff
4b19e5fb0b Allow mulitple values to be read for org-ql-view-buffers-files
commit d8f29225a3
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Fri Sep 24 15:47:38 2021 -0500

    Abstract buffers-files being flattened to a list of strings

commit 2d49745425
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Fri Sep 17 17:53:21 2021 -0500

    Fix: \w duplicates & func's with buffers/names with expand/contract

commit 576f9d3512
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Thu Sep 16 18:42:32 2021 -0500

    Handling support for functions \w functions using completing-read-multiple

commit cea165192d
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Thu Sep 16 16:49:19 2021 -0500

    Cleaning up functions and improvements for clarity.

commit aa9c6ccdfa
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Wed Sep 15 17:56:19 2021 -0500

    Adding `comma separated` instruction to readme

commit 564d491604
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Mon Sep 13 17:05:14 2021 -0500

    Fixes for using mulitiple values and related test suite improvements

commit ffaebcbcbe
Merge: 788951a 94f9e6f
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Mon Sep 13 13:15:57 2021 -0500

    Merge branch 'master' of https://github.com/alphapapa/org-ql

commit 788951a4a9
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Mon Sep 13 11:01:55 2021 -0500

    Replacing org-ql-view--expand-buffers-files

commit cabf88eea5
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Mon Jul 19 00:19:52 2021 -0500

    removing duplcates when expanding buffers-files

commit b68d836562
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Sun Jul 18 23:49:54 2021 -0500

    Using completing-read-multiple for org-ql-view--complete-buffers-files

commit 06bdfc7a9e
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Sun Jul 4 23:32:08 2021 -0500

    Fn always promts for buffer/files; handle buffer obj and list

    Fn: org-ql-view--complete-buffers-files
    With buffers, org-ql-view--contract-buffers-files return the buffer
    name.
    When org-ql-view-buffers-files is a list, just dumpt it as a string
    and check if completion-read returns the same value, if so return the
    original value of org-ql-view-buffers-files

commit cc6e22dd30
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Sun Jul 4 23:31:31 2021 -0500

    Allow reading buffer names for buffers-or-names

commit 89b84768ad
Author: Ahmed Shariff <ahmed.shariff@live.com>
Date:   Sat Jul 3 21:25:10 2021 -0500

    Test cases for all org-ql-view--*-buffers-files functions

commit 7120b6334d
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Sat Jul 3 02:17:33 2021 -0500

    Refactor of org-ql-view--complete-buffers-files

    Handles the different values `org-ql-view-buffers-files` can hold.
    Use completing-read only if `org-ql-view-buffers-files` is nil or the
    contracted form of `org-ql-view-buffers-files` is a string.

commit 7b990e5275
Author: Ahmed Shariff <shariff.mfa@outlook.com>
Date:   Wed Jun 30 18:01:49 2021 -0500

    Fix for issue with initial-input in org-ql-view--complete-buffers-files
2022-11-20 21:43:22 -08:00
Adam Porter
5f70636556 Add: (org-ql-find-display-buffer-action) 2022-10-07 18:34:55 -05:00
Adam Porter
e54ba0102c Add: (property) :inherit argument 2022-10-07 18:33:35 -05:00
Adam Porter
e41cdb4591 Change: (org-ql-find-goto-hook) Add org-reveal
Showing the context is much better for the user.
2022-08-25 16:55:58 -05:00
Adam Porter
d7ada532c7 Add: Alias "c" to (category) 2022-08-19 03:38:43 -05:00
Adam Porter
7f4faff27b Add: (org-ql-refile) 2022-08-19 03:26:15 -05:00
Adam Porter
cfa3b307ec Add/Change: org-ql-completing-read, etc. 2022-08-19 03:26:15 -05:00
Adam Porter
18869c47ff Tidy: Headers 2022-08-19 03:14:46 -05:00
Adam Porter
6257ae8304 Fix: (org-ql-find--snippet-*) Use save-excursion 2022-08-15 16:16:55 -05:00
Adam Porter
06f1e1be6f Revert "Change: (org-ql-find) Add workaround for Ivy support"
This reverts commit a02ed48ac8.

See <https://github.com/alphapapa/org-ql/issues/284#issuecomment-1187705847>.
2022-07-18 13:44:25 -05:00
Adam Porter
a02ed48ac8 Change: (org-ql-find) Add workaround for Ivy support
See <https://github.com/alphapapa/org-ql/issues/284>.
2022-07-18 10:57:50 -05:00
Adam Porter
98b6049ecc Fix: (org-ql-find) Check major mode
See https://github.com/alphapapa/org-ql/issues/284#issuecomment-1185367899.
2022-07-15 13:50:10 -05:00
Adam Porter
a986e360c3 Fix: (org-ql-find) Select buffer
Thanks again to Thomas Bergheim (@bergheim).
2022-07-14 13:05:42 -05:00
Adam Porter
d46e69b0fc Fix: (org-ql-find) Always include query-prefix
Thanks to Thomas Bergheim (@bergheim) for his help!
2022-07-14 12:52:44 -05:00
Adam Porter
c2b8af3181 Fix: (org-ql-find) Always map across a list 2022-06-26 22:55:20 -05:00
Adam Porter
77916a1c4f Tidy: Indentation 2022-06-25 10:58:33 -05:00
Adam Porter
5f058b9eee Add: (org-ql-find-in-agenda, org-ql-find-in-org-directory) 2022-06-25 10:58:17 -05:00
Adam Porter
dc02c59cad Add: (org-ql--ensure-buffer)
And use in org-ql-find.  This seems to solve a problem I've been
noticing in helm-org-ql for a long time: that it can apparently
interrupt Org's initialization code, which can leave buffers
unprepared for Org, even stuck in fundamental-mode.  This should also
be used in helm-org-ql...
2022-06-25 10:56:18 -05:00
Adam Porter
bbd164c6ae Change/Fix: (org-ql-select) Warn instead of erroring on bad files
This helps prevent unexpected errors from making it impossible to
search, and displaying the messages in the warnings buffer makes them
more noticeable and readable for the user.
2022-06-25 10:54:38 -05:00
Adam Porter
5768c685ad Remove: org-ql-find-heading, org-ql-find-path
These are virtually obsolete with the introduction of the "rifle"
predicate as the default one.  Having them now is just confusing.
2022-06-25 10:53:29 -05:00
Adam Porter
bacdacb1b2 Change: Use buffer-chars-modified-tick
Closes #203.  Thanks to Ihor Radchenko (@yantar92).
2022-06-13 19:08:36 -05:00
Adam Porter
e22890ad04 Docs: Update changelog 2022-06-13 19:07:44 -05:00
Ihor Radchenko
675d333b91 Use buffer-chars-modified-tick instead of buffer-modified-tick 2022-06-13 19:05:34 -05:00
Adam Porter
6e7371ce61 Add: (org-ql-find) Snippet functions
The default is even more like org-rifle now.
2022-06-11 11:01:52 -05:00
Adam Porter
ede1a6b10b Change: Don't use (setf (plist-get ...))
That expansion is new in Emacs 28, which we don't yet target as the
minimum version.
2022-06-11 09:19:35 -05:00
Adam Porter
1ddc505977 Change: Rename coalesce-multiple-calls to coalesce 2022-06-11 08:16:15 -05:00
Adam Porter
6602f32165 Tests: Update (add, reorganize)
They all pass now (with a temporary, uncommitted workaround in
makem.sh for a Buttercup bug:
<https://github.com/jorgenschaefer/emacs-buttercup/issues/218>).
2022-06-11 08:15:24 -05:00
Adam Porter
73ef71ced7 Comment: Add FIXME 2022-06-11 08:15:24 -05:00
Adam Porter
4f29bcfd67 Add: (rifle/smart) Predicate 2022-06-11 08:15:24 -05:00
Adam Porter
968a249ae3 Add: Query coalescing for AND clauses
A later commit will update and add tests.
2022-06-11 08:15:24 -05:00
Adam Porter
0057972069 Add: (org-ql-default-predicate) 2022-06-10 01:32:48 -05:00
Adam Porter
c8c89be7bc Meta: Update makem.sh, Makefile 2022-06-09 22:34:07 -05:00
Adam Porter
d4f2eb760e Fix: (src) Normalization
Some argument combinations weren't normalized correctly and could
cause an infinite loop.

This commit doesn't update any corresponding tests, because they are
being rearranged in the WIP branch where this commit originates, and
teasing them out wouldn't be worth it.
2022-06-09 22:34:07 -05:00
Adam Porter
c7fab9dfce Tests: Wrap bare (expect) forms in (it) forms 2022-06-09 22:34:07 -05:00
Adam Porter
36e97d51cf Tests: Fix non-file-backed-buffer test
Somehow a Unicode "RIGHT SINGLE QUOTATION MARK" replaced the ASCII
apostrophe in this string, which broke the test.  Weird!
2022-06-09 22:16:59 -05:00
Adam Porter
64a9234733 Add: (org-ql-find) :query-filter
Also, tidy docstring.
2022-06-02 11:51:57 -05:00
Adam Porter
67506a56f8 Change: (org-ql--byte-compile-warning) More useful error message
e.g. if a predicate only accepts one argument, but the query gives
two, now the error will say, "PREDICATE called with 2 arguments, but
accepts only 1" (so maybe the predicate definition just needs
"&rest").
2022-05-31 12:01:42 -05:00
Adam Porter
d0acc8cbba Add: (org-ql-find) 2022-05-30 11:27:12 -05:00
Adam Porter
8933f8853c Merge: 0.6.2 2022-05-27 02:05:56 -05:00
Adam Porter
115500c8a0 Fix: (link) Save excursion around regexp search
Fixes #279.  Thanks to Marc Fargas (@telenieko) for reporting.

Released as 0.6.2.
2022-05-27 02:03:20 -05:00
Adam Porter
46f523d94a Meta: 0.7-pre 2022-03-18 10:34:54 -05:00
Adam Porter
f666fe150f Release: 0.6.1 2022-03-18 10:29:50 -05:00
Adam Porter
4f11878b7d Update: Transient macro names
Closes #269.  See https://github.com/magit/transient/issues/192.
Thanks to Jonas Bernoulli (@tarsius).
2022-03-18 10:29:07 -05:00
Adam Porter
1e7700e64e Fix: Links to headings with stats cookies in dynamic blocks
Fixes #248.  Closes #249.

Thanks to Maikol Solis (@maikol-solis) for reporting, and to him and
Ihor Radchenko (@yantar92) for helping plan the fix.
2022-03-18 10:28:17 -05:00
Adam Porter
49b973ab11 Meta: 0.6.1-pre 2022-03-18 10:06:58 -05:00
Adam Porter
31aeb0a250 Release: 0.6 2021-09-22 01:15:26 -05:00
Adam Porter
d2c3fb32d9 Tidy: Indentation 2021-09-22 01:11:38 -05:00
Adam Porter
140aa891f4 Remove: Obsolete macro org-ql 2021-09-22 01:08:54 -05:00