gcalcli icon indicating copy to clipboard operation
gcalcli copied to clipboard

multiline description

Open joukio opened this issue 5 years ago • 4 comments

hi,

when I list an event with a multilined description field with the --tsv option I get the following output:

ftest1\ntest2\ntest3\ntest4\ntest5\ntest6\ntest7\ntest8\ntest9

however, when I add a similar event with gcalcli with the same as above in the description field, the line will be put exactly like that in the description.

I would like to be able to add a multilined description in an event. Am I doing something wrong?

kind regards

Jouk Hettema

joukio avatar Jan 14 '20 08:01 joukio

I have to admit, it's not 100% clear to me what your issue is. Can you provide a sample session to show the issue you're trying to solve?

jcrowgey avatar Jan 17 '20 06:01 jcrowgey

ok, I will try to explain it better.

when I add a new event to my google calendar via de web interface I can use multi lines in the description field. image

When I list this event with gcalcli I see image

When I list this event with gcalcli in tsv format I see image

When I add an event to my google calendar with gcalcli: image

When I lookup this event in de webgui of google calendar it makes one string of the description: image

I would like to be able to use multiline descriptions if possible.

joukio avatar Jan 23 '20 15:01 joukio

I think you just need to use a literal newline in that description instead of an escape sequence:

jcrowgey@tsuga:~$ gcalcli add --when "tomorrow" --allday --duration=1 --color=peacock --title "test event" --description="test1
> test2
> test3"
Location: here
Enter a valid reminder or "." to end: .
0 [email protected]
Specify calendar from above: 0
jcrowgey@tsuga:~$ gcalcli agenda --details=all

Sun Jan 26           test event
                     Calendar: [email protected]
                     Link: https://www.google.com/calendar/event?eid=NzRqM2ltcGUyNnE1cjRnc3RtdHJvcWxwdHMgam9zaHVhLmNyb3dnZXlAbQ
                     Location: here
                     Length: 1 day, 0:00:00
                     Email: [email protected]
                     Description:
                     ┌─────────────────────────────────────────────────────────┐
                     │ test1                                                   │
                     │ test2                                                   │
                     │ test3                                                   │
                     └─────────────────────────────────────────────────────────┘

jcrowgey avatar Jan 25 '20 23:01 jcrowgey