4

I want to capture things with a deadline timestamp relative to the date that is open in my agenda view. How can I do that?

The %T template inserts today's date. I want a template that queries my agenda view for the date and uses that instead.

1

The current date in an agenda view is kept in the buffer-local org-starting-day. Use a sexp like %(format-time-string "%Y-%m-%d" (org-time-from-absolute org-starting-day)) in your capture template to insert a date string.

1

With the cursor on the desired date in the agenda view, press k (for kapture). This will cause anything referring to the current day (for example %T in a capture template) to refer to the date in the agenda instead.

  • In spacemacs, this is K (upper case) – Croad Langshan Oct 29 '18 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.