Re: [O] use %A to prompt for plain text when there is not file

2017-09-20 Thread Amos Bird
#+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

Re: [O] use %A to prompt for plain text when there is not file

2017-09-20 Thread Nicolas Goaziou
Amos Bird 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 soun

Re: [O] use %A to prompt for plain text when there is not file

2017-09-20 Thread Nicolas Goaziou
Hello, Amos Bird 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 in

Re: [O] use %A to prompt for plain text when there is not file

2017-09-20 Thread Amos Bird
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 writes: > Amos Bird writes: > >> when in a file backed buffer, doing org capture with %A

[O] use %A to prompt for plain text when there is not file

2017-09-19 Thread Amos Bird
#+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 amosb...@gmail.com