How to use :property properly? #266
-
Hi, I'm struggling with the
I'd like to have a group/section in my agenda which shows all items where
So for this week Maybe it's my fault I don't know how to construct a cons cell properly. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, Please see the documentation of the property selector:
You're getting that error because it is indeed invalid. If you want to insert the current week into the Backquoting, unquoting, and splicing is covered in a section of the Elisp manual. Simply, note the difference between what these forms evaluate to: `(foo ,(format-time-string "%U"))
'(foo (format-time-string "%U")) |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. In
then I get:
Again: I want to match items with a property called |
Beta Was this translation helpful? Give feedback.
-
Just posting this to solve the problem and get the issue closed. The problem is that you are nesting a backquote inside of an already quoted block. Simply change the block from a quote to a backquote and then use the expression that alphapapa provided. (org-super-agenda-groups
`(
(:log t)
(:discard (:tag "inactive"))
(:discard (:tag "jira"))
(:name "This Week"
:property ("week" ,(format-time-string "%U"))
)
(:discard (:anything)))) Note the change I made on the second line of my code snippet, the form is now using |
Beta Was this translation helpful? Give feedback.
Just posting this to solve the problem and get the issue closed.
The problem is that you are nesting a backquote inside of an already quoted block. Simply change the block from a quote to a backquote and then use the expression that alphapapa provided.