I write my weekly report on Wednesdays. As such I need to see what I've done starting last Wednesday until now. (usually a Wednesday).
I would like to create an Agenda view for this, so I can quickly flick between the weeks, but I cannot find a way of specifying '-7' days.
I tried customizing
org-agenad-custom-commands and setting the days to '-7' but that only shows the current day.
At present I generate a report for this:
#+BEGIN: clocktable :tstart "<-6d>" :tend "<now>" :scope agenda-with-archives :narrow 70 :formatter my-org-clocktable-notodo :maxlevel 3 :fileskip0
But I can't find a way to transpose this to an Agenda custom view. Is this possible?
As per lawlist's advise in the comment I got it to work.
1) I customized
org-agenad-custom-commands, added an agenda view that shows "Number of days in agenda" = 8. I assigned "W" to this agenda view.
'(org-agenda-custom-commands .... ("W" "Last 8 days." agenda "" ((org-agenda-span 8) ...
2) I then defined a function that temporarily defines the variable:
(defun my/agenda-last-week () (interactive) (let ((org-agenda-start-day "-7d")) (org-agenda nil "W")) )
I then assign a hotkey to that function.
Now I can view my last week Wednesday to Wednesday, (inc time-report). I am happy.