mpereira / .emacs.d Goto Github PK
View Code? Open in Web Editor NEWVanilla, Evil, literate Emacs configuration
License: MIT License
Vanilla, Evil, literate Emacs configuration
License: MIT License
Hi there,
I saw this code in your config:
(let ((inhibit-read-only t))
(with-current-buffer (get-buffer-create "*org-ql-complex*")
(erase-buffer)
(--each '(("Done today" #'closed-today)
("Done yesterday" #'closed-yesterday)
("Done this week" #'closed-this-week-before-yesterday)
("Done last week" #'closed-last-week)
("Done this month" #'closed-this-month))
(--> (list (car it) (funcall (get-in '(1 1) it)
(org-ql (org-agenda-files)
(done)
:sort (date)
:markers t)))
(list (car it) (--map (concat (org-ql-agenda--format-element it) "\n")
(nth 1 it)))
(insert (concat (car it) "\n" (apply #'concat (nth 1 it))) "\n")))
(pop-to-buffer (current-buffer))))
And I saw that you wrote a little library of functions to support it. Very cool!
But I realized that that was only necessary because org-super-agenda
doesn't support between
dates. I have some prototype code that lets you do something like this:
(let ((org-super-agenda-groups
'((:name "Done last week"
:closed (between "last sunday" "last saturday"))
(:name "Done this week"
:closed (between "this sunday" "this saturday")))))
(org-ql-agenda (org-agenda-files)
(closed)
:sort (date)))
Supporting "Done this month" would be a bit more complicated because of converting the relative date strings to absolute dates (my code uses GNU date
, which doesn't support e.g. first of this month
), but it should be doable.
Would you find this useful?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.