Git Product home page Git Product logo

Comments (9)

tecosaur avatar tecosaur commented on August 19, 2024

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.

herop avatar herop commented on August 19, 2024

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.

tecosaur avatar tecosaur commented on August 19, 2024

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.

herop avatar herop commented on August 19, 2024

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.

tecosaur avatar tecosaur commented on August 19, 2024

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:

image

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.

herop avatar herop commented on August 19, 2024

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 or s 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?

image
image

from emacs-config.

tecosaur avatar tecosaur commented on August 19, 2024

Does %^G appear in the docstring of org-capture-templates for you?

from emacs-config.

herop avatar herop commented on August 19, 2024

It does, yes:
image

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).
image

from emacs-config.

jjungnickel avatar jjungnickel commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.