Just can't get the capture templates to work: Capture abort: Unknown template placeholder: "%^G" #21
Labels
No Label
⭐.
duplicate
good luck!
help
help wanted
idea
invalid
it's not me
nope
question
uh-oh
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tec/emacs-config#21
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I use the 1:1 version of your capture config (and much more).
I tried with / without the %{extra} and of course doct is installed correctly ...
I of course checked the org-mode docs and for sure %^G is legit.
Please help me out here.
I MUST say your configuration infused even more pleasure using DOOM. Your implementation of fonts are amazing.
BTW: What could your use of <> possibly mean?
Even though I know it has its place in referencing for org-files, my literate config.org trows an error if used.
Thank you in advance for your support and have a great day,
Jochen
I just tested the
k
action, and%{extra}
is working as intended for me.Regarding bits like
<<thing>>
in my config, that's something called no-web. See https://orgmode.org/manual/Noweb-Reference-Syntax.html.Well aware of that and didn't imply that at all. As I said, the code for sure is legit.
But still, since I wasn't able at to find any resources on why:
Capture abort: Unknown template placeholder: "%^G"
that happens, I hoped you might come up with an idea on what I could do.Without cutting short on functionality of course ;-)
While I'm at it: your (pieces of) configuration is a huge step for me and made my DOOM 3 times better already.
Please tell me how I can support your work (the GH Sponsor is just not for people like me, I suppose).
Thanks again,
Jochen.
Unfortunately, without being able to reproduce the issue, I don't have much to go off.
Glad to hear it's been helpful 😀.
That's really nice of you. I've added GH sponsor and Buy me a coffee just as options for people who are able to and would like to show their appreciation that way. If you're looking for non-financial ways of supporting me, I don't really think any exist. I suppose there are also the packages I maintain for which bug reports and fixes etc. are always welcome. Don't feel obligated in any way though, I do this because I like it, and everything past that is a bonus 🙂.
Now I understand better how "Sponsor" works and tried to provide USD50.
Tell me, please, if you received it, since after completing with PayPal I, for one, didn't receive a message.
One more thing, reg. the "issue:
(after! org-capture
<<prettify-capture>>
(defun +doct-...
``
Omitting your
<<prettify-capture>>
is not very like to be the culprit, right?Btw. I also tried without the
%^G
since I don't need to choose tags. But then neither the Deadline nor the Schedule text appaears.That's fantastically generous of you! Many thanks 😀.
I can confirm it's come through.
Hmm, I don't suspect so. If you want to see what it expands to, here's the "expanded" version of that code block: http://ix.io/3zRh.
Basically it changes the capture interface to look like this:
Perhaps it would be worth trying to construct a minimal example and seeing if that works? Something like,
For me that generates the following:
You're welcome. And of course, well deserved 💯 😄
Your suggestions:
k
d
ors
respectively the mentioned error occurst
t
to trigger it, I get the same error as always:Capture abort: Unknown template placeholder: "%^G"
So, I assume, we're coming closer: Since the code - as always assumed - is correct, why does the error only occurs if implemented and run inside org?
Does
%^G
appear in the docstring oforg-capture-templates
for you?It does, yes:
Do I understand that right: Pasting your code in scratch buffer and evaluating?
It then does print the string, which I show, partly, in the screenshot.
Maybe you were referring to the docstring from
org-capture-templates
, so here you go (spoiler:%^G%
is present).I'm feeling bad that I can't provide anything valuable to this issue besides a report that this is happening for me too.