I am struggling to setup an org-capture template which captures the current projects name from where it is called.
Just like
‘%f’
File visited by current buffer when org-capture was called.
I am looking for
Project visited by current buffer when org-capture was called.
In fact, I want to end with something like
("r" "Project todo" entry (file+headline notes.org "Tasks")
"* TODO %? :%p:" :prepend t)
Where %p
inserts the current project name.
I am using project.el at the moment.
Thanks. :-)
project.el
has a function to provide the current project name, you could fold that into the template with the%(sexp)
placeholder?(file+function org-default-notes-file gkh/project-current-name)
working?