Comments (9)
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.
from emacs-config.
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.
from emacs-config.
since I wasn't able at to find any resources on why
Capture abort: Unknown template placeholder: "%^G"
happens, I hoped you might come up with an idea on what I could do.
Unfortunately, without being able to reproduce the issue, I don't have much to go off.
While I'm at it: your (pieces of) configuration is a huge step for me and made my DOOM 3 times better already.
Glad to hear it's been helpful 😀.
Please tell me how I can support your work (the GH Sponsor is just not for people like me, I suppose).
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 🙂.
from emacs-config.
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.
from emacs-config.
Now I understand better how "Sponsor" works and tried to provide USD50.
That's fantastically generous of you! Many thanks 😀.
I can confirm it's come through.
<<prettify-capture>>
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,
(doct `(("Test" :keys "t"
:file "/tmp/somefile.org"
:headline "Test"
:type entry
:template ("* TODO %? %^G%{extra}"
"%i %a")
:children (("General Test" :keys "t" :extra "some test")))))
For me that generates the following:
(("t" "Test")
("tt" "General Test" entry
(file+headline "/tmp/somefile.org" "Test")
#'doct--fill-template :doct
(:doct-name "General Test" :keys "t" :extra "some test" :inherited-keys "tt" :file "/tmp/somefile.org" :headline "Test" :type entry :template
("* TODO %? %^G%{extra}" "%i %a")
:doct-custom
(:extra "some test"))))
from emacs-config.
You're welcome. And of course, well deserved 💯 😄
Your suggestions:
- I do see the capture turning up as shown in your image
- Only if I choose
k
d
ors
respectively the mentioned error occurs - If I evaluate your code, I get exactly the same as you
- But if I implement the code in my config and using
t
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?
from emacs-config.
Does %^G
appear in the docstring of org-capture-templates
for you?
from emacs-config.
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).
from emacs-config.
I'm feeling bad that I can't provide anything valuable to this issue besides a report that this is happening for me too.
from emacs-config.
Related Issues (20)
- Adjusting the colors on the splash screen HOT 2
- Errors from init hooks HOT 3
- the search project not work HOT 2
- Teach-a-man-to-fish example will not run. HOT 1
- Translate into Persian 🇮🇷 HOT 1
- How do you handle qwerty-oriented keybindings? HOT 2
- :tangle no produces a weird tangling behavior HOT 1
- Splash screen script changes color of cursor to default (black) HOT 1
- Link to custom SCOWL dictionaries is incorrect HOT 1
- `vertico--exhibit` post-command-hook error with `marginalia` configuration and `doom-homage-white` HOT 1
- doom sync taking too long HOT 1
- doom refactorings break html/pdf export HOT 7
- Unexpected error after CLI:Initializing recipes HOT 3
- Writeroom-mode doesn't work well in Org documents. HOT 2
- (unpin! org) (package! org-contrib) recipe error HOT 1
- Can't run second step of the installation. HOT 3
- Cannot find pdftotext file or directory HOT 1
- Modeline cut off in only org-files. HOT 6
- Error Installation HOT 4
- Config asks for password to clone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-config.