emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ANN: org-ql agenda block support
@ 2019-08-08 15:07 Adam Porter
  2019-08-12 15:39 ` Mikhail Skorzhinskii
  2019-08-25 17:38 ` Milan Zamazal
  0 siblings, 2 replies; 14+ messages in thread
From: Adam Porter @ 2019-08-08 15:07 UTC (permalink / raw)
  To: emacs-orgmode

Hi friends,

FYI, I just pushed a new feature to org-ql: custom agenda blocks.  This
allows the use of org-ql queries in custom agenda commands.

https://github.com/alphapapa/org-ql#function-org-ql-block

For example, these two custom commands are equivalent:

#+BEGIN_SRC elisp
  ;; Org Agenda tags-todo version:
  (setq org-agenda-custom-commands
        '(("ces" "Custom: Agenda and Emacs SOMEDAY [#A] items"
           ((tags-todo "PRIORITY=\"A\"+Emacs/!SOMEDAY")
            (agenda)))))
            
  ;; org-ql version:
  (setq org-agenda-custom-commands
        '(("ces" "Custom: Agenda and Emacs SOMEDAY [#A] items"
           ((org-ql-block '(and (todo "SOMEDAY")
                                (tags "Emacs")
                                (priority "A")))
            (agenda)))))
#+END_SRC

However, the org-ql-block version runs in about 1/5th the time (0.7
seconds compared to 3.45 seconds on my collection of org-agenda-files).

org-ql started as a prototype for a "next-generation agenda" called
org-agenda-ng, but it evolved into its own package, which also provides
tools like org-ql-agenda and org-ql-search that provide agenda-like
views.

Please let me know if you have any feedback.

Thanks,
Adam

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-09-17  4:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-08 15:07 ANN: org-ql agenda block support Adam Porter
2019-08-12 15:39 ` Mikhail Skorzhinskii
2019-08-31  5:20   ` Adam Porter
2019-09-12 19:19     ` Mikhail Skorzhinskii
2019-09-17  4:36       ` Adam Porter
2019-08-25 17:38 ` Milan Zamazal
2019-08-25 18:18   ` Samuel Wales
2019-08-30 10:44     ` Adam Porter
2019-08-31  0:20       ` Samuel Wales
2019-08-31  5:01         ` Adam Porter
2019-09-07  0:43           ` Samuel Wales
2019-09-07 14:32             ` Adam Porter
2019-09-08  0:46               ` Samuel Wales
2019-08-30  9:19   ` Adam Porter

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).