Comments (10)
And it does work! Thank you for your help!
from org-super-agenda.
Yes, it does work, and it reads simpler. Thank you @tuh8888
Btw, "past or today" sounds like a pretty common usecase for me. Doesn't it deserve its own selector? @alphapapa
from org-super-agenda.
Hi Eugene,
Thanks for the kind words. I'm glad it's useful to you.
I suppose this could be a shortcoming in the :scheduled
selector. But have you tried this?
(:name "Routine" :and (:tag "daily" :scheduled past :scheduled today))
I'm guessing that would work, but I haven't tried it. Please let me know whether it does.
Thanks.
from org-super-agenda.
No, it returns no entries. And that seems to be the correct behavior for :and
, because a headline can not be scheduled for two days at the same time. That's exactly what I want to achieve: tag = 'daily' AND (scheduled = 'past' OR scheduled = 'today')
from org-super-agenda.
Of course, you're right. I haven't used my own pseudo-language here in a while. :)
How about this?
(:name "Routine" :and (:tag "daily" :scheduled past) :and (:tag "daily" :scheduled today))
I think that will do it, even though it's a bit awkward compared to having an :or
selector.
from org-super-agenda.
Since today AND past
= NOT future
, maybe this would be simpler:
(:name "Routine" :and (:tag "daily" :not (:scheduled future)))
from org-super-agenda.
@tuh8888 An entry that is :not (:scheduled future)
could also be unscheduled, so that selector would not be equivalent.
from org-super-agenda.
That's good to know. What about this then?:
(:name "Routine" :and (:tag "daily" :not (:scheduled future) :scheduled t))
from org-super-agenda.
Yes, I think that should work. I forgot that t
is a valid argument to :scheduled
. Good idea!
from org-super-agenda.
Btw, "past or today" sounds like a pretty common usecase for me. Doesn't it deserve its own selector?
Generally I'd rather aim for composability than special combinations which would have to be documented, looked up, remembered, etc.
from org-super-agenda.
Related Issues (20)
- There is error -remove: Symbol’s function definition is void: s-blank-str? HOT 1
- Add explicit :or operator for use within :and operator? HOT 3
- Apply face transformation to item only if cheduled HOT 3
- How to use :property properly? HOT 3
- :property selector doesn't recognize properties set in a file's header HOT 1
- Is it possible to reuse blocks of org-super-agenda settings? HOT 1
- Org 9.7 agenda appears to not set `org-marker` property (causing our habit selector to not work) HOT 11
- question on using org-ql HOT 2
- Selector to match diary entries (was: how to exclude diary entries) HOT 1
- `:deadline nil` or/and `:scheduled nil` not working HOT 1
- Why does an agenda window automatically open every time I start emacs after installing the plug-in "org-super-agenda"? How can I prevent this behavior? HOT 2
- auto-group causes `wrong-type-argument buffer-or-string-p` with `org-todo-list` HOT 3
- `org-super-agenda-header-separator`/`org-super-agenda-final-group-separator` need to be considered as well when hiding empty groups HOT 3
- Sort order within a group: "Wrong type argument: sequencep, :auto-ts" HOT 5
- [ENH] add `:auto-matching-tags` or `:auto-tags-regex` HOT 5
- Root items of outline-path look like they're part of the previous group HOT 1
- Add filename to outline-path HOT 1
- Show number of items in group headings HOT 2
- Items not showing on time grid as expected HOT 1
- Entries without a timestamp can have a `dotime` text property and get pulled into `:time-grid` groups HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org-super-agenda.