--- a/application/application.c Tue Nov 26 10:40:45 2024 +0100 +++ b/application/application.c Tue Nov 26 11:38:10 2024 +0100 @@ -315,6 +315,16 @@ } } +void action_rename(UiEvent *event, void *data) { + DavBrowser *browser = event->document; + UiListSelection sel = ui_list_getselection(browser->resources); + if (sel.count == 1) { + davbrowser_rename(event->obj, browser, sel); + } else if(sel.count > 1) { + fprintf(stderr, "Renaming multiple resources is not implemented yet\n"); + } +} + static void newfiledialog_result(UiEvent *event, void *data) { DavBrowser *browser = event->document; char *path = event->eventdata;