Um, but I'd like to use this template for both cases. When inside a temporary, don't generate a link, but plain text instead, while in a file buffer, generate the link as usual.
regards, Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Amos Bird <amosb...@gmail.com> writes: > >> when in a file backed buffer, doing org capture with %A generates >> >> >> [[some link][some description]] >> >> and if the buffer has no file associated with it, I'd like %A to generate >> >> >> some description >> >> the above "some description" is inputed via prompting user. > > It sounds wrong to link to a temporary buffer, i.e., to volatile > contents. It may be more appropriate to use > > %^{prompt} > > in your template instead of > > %A > > when capturing from there. > > WDYT? > > Regards, -- Amos Bird amosb...@gmail.com