* use %A to prompt for plain text when there is not file
@ 2017-09-19 7:44 Amos Bird
2017-09-20 10:27 ` Nicolas Goaziou
0 siblings, 1 reply; 5+ messages in thread
From: Amos Bird @ 2017-09-19 7:44 UTC (permalink / raw)
To: Org Mode Mailing List
[-- Attachment #1: Type: text/plain, Size: 297 bytes --]
#+OPTIONS: latex:t toc:nil H:3
Hi,
I'm currently using this template,
#+BEGIN_EXAMPLE
* %A [/]
- [ ] %?
#+END_EXAMPLE
However when capturing in a non-file buffer, %A generates nothing. I'd like to have a plain text inserted instead. What can I do?
regards,
--
Amos Bird
amosbird@gmail.com
[-- Attachment #2.1: Type: text/html, Size: 654 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: use %A to prompt for plain text when there is not file
2017-09-19 7:44 use %A to prompt for plain text when there is not file Amos Bird
@ 2017-09-20 10:27 ` Nicolas Goaziou
2017-09-20 11:08 ` Amos Bird
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2017-09-20 10:27 UTC (permalink / raw)
To: Amos Bird; +Cc: Org Mode Mailing List
Hello,
Amos Bird <amosbird@gmail.com> writes:
> I'm currently using this template,
> #+BEGINEXAMPLE
>
> 1 %A [/]
>
> * [ ] %?
>
> #+ENDEXAMPLE
>
> However when capturing in a non-file buffer, %A generates nothing. I'd like to have a plain text inserted instead. What can I do?
What do you mean by "a plain text inserted"? Could you give an example?
Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: use %A to prompt for plain text when there is not file
2017-09-20 10:27 ` Nicolas Goaziou
@ 2017-09-20 11:08 ` Amos Bird
2017-09-20 11:13 ` Nicolas Goaziou
0 siblings, 1 reply; 5+ messages in thread
From: Amos Bird @ 2017-09-20 11:08 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: Org Mode Mailing List
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]
#+OPTIONS: latex:t toc:nil H:3
Hi Nicolas,
when in a file backed buffer, doing org capture with %A generates
#+BEGIN_EXAMPLE
[[some link][some description]]
#+END_EXAMPLE
and if the buffer has no file associated with it, I'd like %A to generate
#+BEGIN_EXAMPLE
some description
#+END_EXAMPLE
the above "some description" is inputed via prompting user.
regards,
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Amos Bird <amosbird@gmail.com> writes:
>
>> I'm currently using this template,
>> #+BEGINEXAMPLE
>>
>> 1 %A [/]
>>
>> * [ ] %?
>>
>> #+ENDEXAMPLE
>>
>> However when capturing in a non-file buffer, %A generates nothing. I'd like to have a plain text inserted instead. What can I do?
>
> What do you mean by "a plain text inserted"? Could you give an example?
>
> Thank you.
>
> Regards,
--
Amos Bird
amosbird@gmail.com
[-- Attachment #2.1: Type: text/html, Size: 1182 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: use %A to prompt for plain text when there is not file
2017-09-20 11:08 ` Amos Bird
@ 2017-09-20 11:13 ` Nicolas Goaziou
2017-09-20 11:17 ` Amos Bird
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2017-09-20 11:13 UTC (permalink / raw)
To: Amos Bird; +Cc: Org Mode Mailing List
Amos Bird <amosbird@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,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: use %A to prompt for plain text when there is not file
2017-09-20 11:13 ` Nicolas Goaziou
@ 2017-09-20 11:17 ` Amos Bird
0 siblings, 0 replies; 5+ messages in thread
From: Amos Bird @ 2017-09-20 11:17 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: Org Mode Mailing List
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 <mail@nicolasgoaziou.fr> writes:
> Amos Bird <amosbird@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
amosbird@gmail.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-09-20 13:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-19 7:44 use %A to prompt for plain text when there is not file Amos Bird
2017-09-20 10:27 ` Nicolas Goaziou
2017-09-20 11:08 ` Amos Bird
2017-09-20 11:13 ` Nicolas Goaziou
2017-09-20 11:17 ` Amos Bird
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.