itchyny / calendar.vim

A calendar application for Vim
MIT License
1.95k stars 71 forks source link

How to edit the name of an event and how to delete an event? #198

Closed llinfeng closed 2 years ago

llinfeng commented 2 years ago

For now, I can only create new events with i or o. I cannot edit the name of an existing event. Nor can I delete an event created with i (or o). Please advise how to modify events with calendar.vim.

For my GCP app, I set the scope as the following, which covers both "edit" and "delete". Through this app, the connection did go through after following the steps mentioned in the important notice. image

I have also tried to assign mappings in the :Calendar buffer. Still, none of the keys triggered anything in the Calendar view.

nnoremap c <Plug>(calendar_change) 
nnoremap C <Plug>(calendar_change_line) 
nnoremap d <Plug>(calendar_delete)  
nnoremap d <Plug>(calendar_delete_line)

I wish I am missing something really simple. In the task panel, both c and d are working as intended.

itchyny commented 2 years ago

By default you can edit and delete events in the event view, which you can show with E. In the popup, you can edit with i and a, and delete with dd and D. For customizing the Plug mapping, use nmap instead of nnoremap.

llinfeng commented 2 years ago

Thanks a lot for your clarification!

Indeed, entering the event view with E gets C and D to work again. (My events have pretty short names. It suffices to either delete them or rename altogether.)

ilan-schemoul commented 5 months ago

Is it documented anywhere ? @itchyny