emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-capture-template: table lines including newline of sorts


From: Charles Millar
Subject: Re: org-capture-template: table lines including newline of sorts
Date: Mon, 15 Mar 2021 20:04:34 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0

On 3/15/21 5:00 PM, Uwe Brauer wrote:
"CM" == Charles Millar <millarc@verizon.net> writes:

    > On 3/15/21 10:13 AM, Uwe Brauer wrote:
    >>
    >>> Hi,
    >>> On 3/14/21 1:00 PM, TRS-80 wrote:
    >>> You may have to escape the pipes. I did that in a similar capture 
template.
    >> Can you give me an example, please?
    >>

    > HTH

    > ("s" "timeslip" table-line
    > (file "/mnt/Data/ActiveFiles/timeslips.org")
    >                  "\| %(org-read-date)\| %^{FileName} %i\|
    >                  %^{Narrative} %i\| %^{Time} %i\| %^{Expense} %i"

There is a ) missing, no?

I tried

("s" "timeslip" table-line
(file "/home/oub/timeslips.org")
                  "\| \| %fromname\|
                  :%subject\| %a \| %:date")

But I obtain bad template when executing the code

My bad; I did not pay attention to a four line comment, so here it is
again, with the comment and final line for the template, etc.

(setq org-capture-template '(

. . . some capture templates

                ("s" "timeslip" table-line
             (file "/mnt/Data/ActiveFiles/timeslips.org")
       ;;           (file "d:/ActiveFiles/timeslips.org")
"\| %(org-read-date)\| %^{FileName} %i\| %^{Narrative} %i\| %^{Time} %i\| %^{Expense} %i"

;; Note that there is no escape and pipe after the final content input expansion
;; if there were a \| then an empty column is added
;; (org-read-date) added 2013-07-12; see Sacha Chua's use of same as in
;; the ledger templates below.
                 :empty-lines 1)

, , , some more capture templates

))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]