I have several capture templates. With one of them, I want an Elisp function to transform the contents before saving it. I know of org-capture-prepare-finalize-hook, but this will run for every template. Is there a way to ensure a hook runs only for a given capture template?
In case people are interested, the transformation I want to do is this:
The capture template will have a long list of checkbox items (all unchecked). I want to check one or two of these every time I use that template. Then I want to store only the items that were checked - so my function would delete all unchecked items (declutter).