Commit graph

679 commits

Author SHA1 Message Date
Adam Porter
2e469fa547 Tidy: (org-ql--peg-parse-string) Silence, Checkdoc! 2020-11-10 04:14:44 -06:00
Adam Porter
6d5ce97dc7 Fix: Byte-compile warnings 2020-11-10 04:14:01 -06:00
Adam Porter
9bdfcc1d3d Add: (org-dblock-write:org-ql) Custom column headers 2020-11-10 02:28:44 -06:00
Adam Porter
992f3c2675 Add: Link support 2020-11-10 02:02:55 -06:00
Adam Porter
c0a10ba96a Fix: (org-dblock-write:org-ql) cl-minusp 2020-11-10 00:27:35 -06:00
Adam Porter
8e6aae95a0 Notes: Update 2020-11-10 00:06:37 -06:00
Adam Porter
c0ded3ded3 Add: Dynamic block 2020-11-09 23:58:17 -06:00
Adam Porter
2c466ebdcd Notes: Dynamic blocks update 2020-11-09 22:42:59 -06:00
Adam Porter
90b7a9a48b Notes: Update 2020-11-09 01:55:47 -06:00
Adam Porter
73e17844a3 Meta: Update .gitignore 2020-11-09 01:41:05 -06:00
Adam Porter
17fd923fc9 Meta: Delete Cask file 2020-11-09 01:32:04 -06:00
Adam Porter
9f98b87a8e Comment: Add FIXME 2020-11-09 00:20:33 -06:00
Adam Porter
a91bb208a3 Notes: Update 2020-11-08 23:29:41 -06:00
Adam Porter
b10522de6f Notes: Add idea 2020-11-08 22:15:54 -06:00
Adam Porter
4194456b40 Notes: Update, add ToC, sort, etc. 2020-11-08 20:07:15 -06:00
Adam Porter
359a280d11 Change/Fix: (org-ql-view--format-element) Use org-ql--tags-at
Use org-ql--tags-at instead of org-get-tags/org-get-tags-at.  This
uses our cache, which should improve performance, and it obviates the
function alias for Org versions before 9.3 (which occasionally
misbehaves, e.g. if Org is reloaded).
2020-11-08 18:05:27 -06:00
Adam Porter
958cd50794 Meta: Update makem.sh 2020-11-08 18:02:53 -06:00
Adam Porter
5e61d1b326 Fix: (org-ql--peg-parse-string) Unused lexical variable warning
peg.el doesn't use lexical binding, and org-ql.el does, so this caused
a byte-compile warning.  It doesn't seem to change the behavior of the
expanded code, so it should be a safe change...
2020-11-05 11:28:22 -06:00
Adam Porter
94be07244c Fix: (org-ql-view-refresh) Rename buffer uniquely
This is sort of a workaround or preventative measure as much as it is
a fix.  It seemed to be necessary when I was testing bookmark
loading in org-sidebar.
2020-11-05 11:21:33 -06:00
Adam Porter
f88fb549a3 Docs: Add Tips section 2020-11-05 11:21:06 -06:00
Adam Porter
028c25c106 Fix: (-view--bookmark-make-record) Replace buffers with filenames 2020-11-02 21:35:42 -06:00
Adam Porter
e5b4cd1065 Add: Bookmark support 2020-11-02 20:18:34 -06:00
Adam Porter
57708e6cc1 Change: (-view--plist, -view-save) Factor out plist code
In preparation for bookmark support.
2020-11-02 20:12:31 -06:00
Adam Porter
65cc3fc24e Notes: Add task 2020-10-19 00:24:24 -05:00
Adam Porter
6633dbb276 Release: 0.4.6
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iEYEABECAAYFAl8L0BwACgkQ5+GdyTDsrJsFVQCdGz0i4KXwrnqcQC7Ov5/b+YSH
 lUEAoIJBRRJ462lJbe4nzkOkrB3VMIGF
 =JOpa
 -----END PGP SIGNATURE-----

Merge: 0.4.6
2020-07-12 22:09:03 -05:00
Adam Porter
0080055690 Fix: Copy macro peg-parse-string from peg-tests.el
Unfortunately, the macro was moved from peg.el to peg-tests.el in
later versions of peg, so we copy it for our use here.

Fixes #75.  Thanks to Karl Voit (@novoid) and @karlicoss for
reporting.

Released as 0.4.6.
2020-07-12 22:08:01 -05:00
Adam Porter
c847afe0b5 Merge: 0.4.5 2020-05-01 06:31:45 -05:00
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
f4d7399e67 Fix: (org-ql-view--contract-buffers-files) Only compare to function
If the org-agenda-files variable points to a file pointing to a list
of agenda files, it shouldn't be compared to.  We should only compare
to the value returned by the org-agenda-files function.

Fixes #104.  Thanks to @gdindi for reporting.
2020-04-07 12:06:57 -05:00
Adam Porter
81673fc7b5 Fix: (org-ql-predicates) Use eval-and-compile
This is technically correct, even though package.el might obscure the
problem by causing the file to be loaded before it is compiled.
2020-04-07 12:05:24 -05:00
Adam Porter
ab5e9aa911 Notes: Add idea 2020-03-26 04:41:46 -05:00
Adam Porter
b3ee9a9c08 Notes: Add tasks, sort 2020-03-20 15:59:28 -05:00
Adam Porter
d55c01d2ae Merge: 0.4.4 2020-03-15 15:04:29 -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
5bc4a4a825 Merge: 0.4.3 2020-03-14 14:08:53 -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
ca03ad0d4a Meta: Update makem.sh 2020-03-14 14:01:35 -05:00
Adam Porter
881d298cd0 Comment: Add TODOs 2020-03-13 19:08:26 -05:00
Adam Porter
1688774ddd Change: (org-ql-view--header-line-format) Use keyword args 2020-03-09 17:40:41 -05:00
Adam Porter
f7d8b8c78c Fix: (org-ql-view-map) Bind q to bury-buffer
Because org-agenda-quit isn't useful in org-ql-view buffers.
2020-03-09 13:31:56 -05:00
Adam Porter
996d648560 Fix: (org-ql-view--contract-buffers-files) Handle org-agenda-files 2020-03-08 11:14:13 -05:00
Adam Porter
3349c1d07a Change: (org-ql-view-map) Also bind "g" to refresh
I keep hitting "g" and nothing seems to happen, because it runs the
org-agenda refresh command, which doesn't do anything in org-ql-view
buffers.  This must be happening to other people too.  So let's fix
that.
2020-03-08 11:05:38 -05:00
Adam Porter
8aac3b6100 Fix: (org-ql-view-map) Use set-keymap-parent 2020-03-08 11:05:20 -05:00
Adam Porter
0648196076 Change/Fix: (helm-org-ql.el) Wrap in eval-and-compile
This avoids errors when Helm is not installed, and it seems to work
correctly when Helm is installed.  This should be an improvement until
this file is put in its own package.
2020-03-02 00:58:10 -06:00
Adam Porter
11a0466f92 Fix: (helm-org-ql-map) Use make-composed-keymap
Fixes #99.  Thanks to Akira Komamura (@akirak).
2020-03-02 00:45:27 -06:00
Adam Porter
20f3ce747c Fix: (org-ql-view--contract-buffers-files) Single file/buffer
This fixes the bug for now, but it needs to be tested more carefully.
And now the view dispatcher has a minor bug when changing the list of
buffers-files sometimes that requires pressing it more than once to
get the prompt; not sure if related to this.
2020-03-02 00:23:35 -06:00
Adam Porter
132173b36e Fix: (org-ql-view) Require crm
Fixes #98.  Thanks to @bepolymathe for reporting.
2020-03-02 00:22:41 -06:00
Adam Porter
e811ac5680 Docs: Add mascot 2020-03-01 09:41:35 -06:00
Adam Porter
fc91bdd483 Add/Change: (org-ql-view--contract-buffers-files), etc.
When offering completion of org-ql-view-buffers-files, and when
formatting it in the header line, use the "contracted" form when
possible (i.e. show "org-agenda-files" instead of a list of all the
expanded agenda file filenames).

Fixes #95.  Thanks to Kilian Sprotte (@kisp) for suggesting.
2020-02-27 20:03:25 -06:00
Adam Porter
a459204e78 Change: (view--complete-sort) Separate with spaces, not comma 2020-02-26 19:57:16 -06:00