Docs: Update example
This commit is contained in:
parent
c2b8776eca
commit
4d97dc6234
1 changed files with 9 additions and 9 deletions
12
examples.org
12
examples.org
|
|
@ -48,15 +48,15 @@ With this =org-ql-block= agenda view, like:
|
||||||
This uses the example in the readme file, but maps across the elements returned by ~org-ql~ to present a simple list of titles and deadlines.
|
This uses the example in the readme file, but maps across the elements returned by ~org-ql~ to present a simple list of titles and deadlines.
|
||||||
|
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(--map (list (org-element-property :raw-value it)
|
|
||||||
(org-timestamp-format (org-element-property :deadline it) "%c"))
|
|
||||||
(org-ql (org-agenda-files)
|
(org-ql (org-agenda-files)
|
||||||
(and (not (done))
|
(and (not (done))
|
||||||
(tags "bills")
|
(tags "bills")
|
||||||
(deadline <=))
|
(deadline auto))
|
||||||
:sort deadline))
|
:action (list (substring-no-properties (org-get-heading t t))
|
||||||
;;=> (("Electric bill" "Thu 23 Aug 2018 12:00:00 AM CDT")
|
(org-entry-get (point) "DEADLINE"))
|
||||||
;; ("Rent" "Sat 01 Sep 2018 08:00:00 PM CDT"))
|
:sort deadline)
|
||||||
|
;;=> (("Electric bill" "<2018-08-23 Thu +1m>")
|
||||||
|
;; ("Rent" "<2018-09-01 Sat +1m>"))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
This could also be put in a script, which could use desktop notifications to remind of bills coming due: [[examples/org-bills-due.el][org-bills-due.el]].
|
This could also be put in a script, which could use desktop notifications to remind of bills coming due: [[examples/org-bills-due.el][org-bills-due.el]].
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue