Commit graph

982 commits

Author SHA1 Message Date
Adam Porter
0a2b751464 Fix: (org-ql-view-bookmark-make-record) List of filenames
Fixes #148.  Thanks to @tpeacock19 for reporting.
2020-11-14 20:35:52 -06:00
Adam Porter
1b12d4e9b0 Fix: (org-ql-view--link-store) Don't re-format formatted queries
org-ql-view--format-query already returns a string.
2020-11-14 05:43:50 -06:00
Adam Porter
4a8deb541e Comment: Add FIXME 2020-11-14 05:43:12 -06:00
Adam Porter
0365b785cc Fix: (org-ql--defpred) Add to predicates variable when compiling
This seems to fix an occasional weird bug encountered when
byte-compiling and loading this file.  I can't explain why it only
happens sometimes, but this seems to fix it, and it stands to reason
why it does, so it seems like the right thing to do.
2020-11-14 05:41:37 -06:00
Adam Porter
89ff02a150 Fix: (org-ql--query-sexp-to-string) Ancestors, etc. queries 2020-11-14 05:40:24 -06:00
Adam Porter
dd30f07942 Notes: Update 2020-11-14 05:22:59 -06:00
Adam Porter
be4e941fc9 Notes: Update 2020-11-13 03:13:48 -06:00
Adam Porter
51f987c6b8 Fix: (org-dblock-write:org-ql) Rename unused variables 2020-11-13 02:45:45 -06:00
Adam Porter
f8b41ea027 Fix: (org-dblock-write:org-ql) Remove unused argument 2020-11-13 02:44:46 -06:00
Adam Porter
b90e6e25d0 Tests: Use test buffer for link safety tests 2020-11-13 02:42:52 -06:00
Adam Porter
56647d4b11 Notes: Update 2020-11-12 05:23:59 -06:00
Adam Porter
cd95d10f05 Add: Dynamic block (property) column 2020-11-12 05:01:20 -06:00
Adam Porter
2b21871a02 Notes: Update 2020-11-12 04:13:47 -06:00
Adam Porter
337bfa6695 Add: (tags-regexp, tags*) Predicate 2020-11-12 04:09:57 -06:00
Adam Porter
cbd4ea89f4 Notes: Update 2020-11-12 03:25:47 -06:00
Adam Porter
f63012dd5a Fix: (org-ql-view--link-store) Rejection of unlinkable buffers
Also, remove the Org <=9.1.4 compatibility code.  It's not worth it.
I'm probably the only person who needs it, anyway, and I can live with
the double-call until I upgrade my Org version.

Fixes #148.  Thanks to @tpeacock19 for reporting.
2020-11-12 02:44:16 -06:00
Adam Porter
284eda87e5 Fix: (org-ql-view--link-store) Test Org version
See #147.  Thanks to @tpeacock19 for reporting.
2020-11-12 02:10:57 -06:00
Adam Porter
a069cf5b2c Notes: Update 2020-11-12 00:28:32 -06:00
Adam Porter
5e790c48ac Tests: Add tests for link safety 2020-11-12 00:22:45 -06:00
Adam Porter
a5d4886880 Fix: (org-ql-view--link-open) Safety check the sort parameter 2020-11-12 00:22:23 -06:00
Adam Porter
689cfd68e7 Fix: (-view--link-open) Set org-super-agenda-allow-unsafe-groups 2020-11-11 22:52:54 -06:00
Adam Porter
6ab74454d0 Fix: (org-ql-view--expand-buffers-files) Remove eval support
This prevents arbitrary code execution when opening "org-ql-search:"
links.  (The links feature was just pushed to master in the last day
or so, and no stable release with the feature has been tagged.)  This
fix also means that arbitrary expressions are no longer accepted when
interactively completing the buffers-files argument to
org-ql-search (a worthy trade, I think; users who need to do that can
call the function from Lisp).
2020-11-11 20:51:24 -06:00
Adam Porter
c2c7efed00 Docs: Update readme
Links can search more than just the current document now.
2020-11-11 20:38:05 -06:00
Adam Porter
2bed84aa1e Fix: (org-ql-view--contract-buffers-files) Don't check file exists
If the buffer has no filename, this will signal an error.
2020-11-11 19:54:13 -06:00
Adam Porter
f8d671a7b8 Docs: Thanks to @tpeacock19 2020-11-11 19:52:46 -06:00
Adam Porter
b0b8c6334d Fix: (helm-org-ql.el) Compiler warnings 2020-11-11 19:52:46 -06:00
Adam Porter
4b557857d3 Tidy: Indentation 2020-11-11 19:52:46 -06:00
Adam Porter
b0e8fa2734 Tidy: Indentation 2020-11-11 19:52:46 -06:00
Adam Porter
04c94bc141 Change: (org-ql-view.el) Rename bookmark functions
They shouldn't be private functions, especially since one is autoloaded.
2020-11-11 19:52:24 -06:00
Adam Porter
0101bbebde Comment: Remove useless package header
Not the main library file.
2020-11-11 19:52:24 -06:00
Adam Porter
6970a952ba Fix: (org-ql-search.el) Require map
Need to explicitly load it so that map 2.1 will be loaded when the
file is byte-compiled, otherwise the pcase map expansions will fail.
2020-11-11 19:52:24 -06:00
Adam Porter
33df77420e Notes: Update 2020-11-11 19:52:24 -06:00
Adam Porter
87b952c7bf Fix: (org-ql-view--link-store) Don't store link to buffers 2020-11-11 19:52:24 -06:00
Adam Porter
01660aac22 Notes: Update 2020-11-11 19:52:24 -06:00
Adam Porter
ef40a25b05 Change: (org-ql-view--link-store) Convert queries to strings
See #147.
2020-11-11 19:52:24 -06:00
Adam Porter
e15cc3eb76 Add: (--query-sexp-to-string) 2020-11-11 19:52:24 -06:00
Adam Porter
07d21e57c0 Tidy 2020-11-11 19:52:24 -06:00
Adam Porter
bfd4d462a0 Add/Change/Fix: Storing links to containing buffer or files
This feels too complicated, but I don't see a way around it, short of
redesigning all of the argument expansion/contraction, which might end
up in the same place, anyway.

See #147.
2020-11-11 19:52:24 -06:00
Adam Porter
8102d7a8ee Fix: (org-ql-view--format-element)
Actually, really fix it this time.

Fixes #150.  Thanks to @tpeacock19 for reporting.
2020-11-11 18:11:24 -06:00
Adam Porter
168041f0df Comment: Add FIXME 2020-11-11 04:24:34 -06:00
Adam Porter
bd9162381f Notes: Update 2020-11-11 01:45:55 -06:00
Adam Porter
73da48d9da Comment: Add FIXMEs 2020-11-11 00:23:32 -06:00
Adam Porter
78fd672cc7 Fix: (org-ql-view--format-element) Get tags from marker buffer
Fixes bug introduced in 359a280d11.

Fixes #150.  Thanks to @tpeacock19 for reporting.
2020-11-11 00:23:17 -06:00
Adam Porter
23e73addcf Fix: (-view--link-store, -view--link-open) Types, current-buffer
This is regrettably complicated.  Maybe someday Elsa will help...

Fixes #147 (again).  Thanks to @tpeacock19 for reporting.
2020-11-10 20:35:32 -06:00
Adam Porter
60b457eea4 Fix: (org-ql-view.el) Compiler warnings 2020-11-10 19:43:48 -06:00
Adam Porter
93f60ad478 Fix: (org-ql-view--link-store) Handle single filenames
Fixes #147.  Thanks to @tpeacock19 for reporting.
2020-11-10 19:42:12 -06:00
Adam Porter
364dfabca4 Add: (org-ql-view-ask-unsafe-links) 2020-11-10 19:42:12 -06:00
Adam Porter
e3c7aaf98d Docs: (org-ql-search) Add Info links to docstring 2020-11-10 18:37:04 -06:00
Adam Porter
5d563809e2 Change: (-view--link-open, -view--link-store) Links to views of files
Fixes #147.  Thanks to @tpeacock19 for reporting.
2020-11-10 18:27:33 -06:00
Adam Porter
1b43a88d32 Fix: (org-ql-view--link-store) Check buffers-files only when needed
See #147.  Thanks to @tpeacock19 for reporting.
2020-11-10 17:45:27 -06:00