Re: [O] is it possible to reuse a capture template expansion?
Nicolas Goaziou writes: > Hello, > > Stig Brautaset writes: > >> I've got a capture template where I want to prompt for a string and use >> it in two places, but I end up being prompted twice. [...] > You can use %1, %2... to reuse the first string, the second one... Thanks! I now managed to get it to work, but had to add more backslashes: %\1, %\2 etc, not %1, %2. BTW, the manual[1] actually says %\\n, so adds _too many_ backslashes :-) [1] http://orgmode.org/manual/Template-expansion.html#Template-expansion Stig -- : Stig Brautaset, GNU Emacs 25.1.1, Org-mode version 8.3.6
Re: [O] is it possible to reuse a capture template expansion?
Hello, Stig Brautaset writes: > I've got a capture template where I want to prompt for a string and use > it in two places, but I end up being prompted twice. I want a template > something like the below, and be prompted only once each for Title and > Abstract. Is that possible somehow? Any help appreciated. > > > : * TODO Write %^{Title} Blog post > : #+begin_html > : --- > : title: %^{Title} > : layout: post > : abstract: %^{Abstract} > : --- > : #+end_html > : > : %^{Abstract} > : > : %? You can use %1, %2... to reuse the first string, the second one... Regards, -- Nicolas Goaziou
[O] is it possible to reuse a capture template expansion?
I've got a capture template where I want to prompt for a string and use it in two places, but I end up being prompted twice. I want a template something like the below, and be prompted only once each for Title and Abstract. Is that possible somehow? Any help appreciated. : * TODO Write %^{Title} Blog post : #+begin_html : --- : title: %^{Title} : layout: post : abstract: %^{Abstract} : --- : #+end_html : : %^{Abstract} : : %? Stig -- : Stig Brautaset, GNU Emacs 25.1.1, Org-mode version 8.3.6