From 2c9ea341cf2364ac0a4ea05d0d0f3dca983c14de Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 1 Apr 2016 08:35:14 +0200 Subject: Document the hooks feature Signed-off-by: Lukas Fleischer --- contrib/caldav/README | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'contrib/caldav/README') diff --git a/contrib/caldav/README b/contrib/caldav/README index aed1320..008b3fe 100644 --- a/contrib/caldav/README +++ b/contrib/caldav/README @@ -26,10 +26,25 @@ argument. You can choose between the following initialization modes: --init=keep-remote Remove all local calcurse items and import remote objects --init=keep-local Remove all remote objects and push local calcurse items --init=two-way Copy local objects to the CalDAV server and vice versa - + For subsequent calcurse-caldav invocations, you don't need to specify any additional parameters. +Hooks +----- + +You can place scripts in `$HOME/.calcurse/caldav/hooks/` to trigger actions at +certain events. To enable a hook, add a script with one of the following names +to this directory. Also make sure the scripts are executable. + +*pre-sync*:: + Executed before the data files are synchronized. +*post-sync*:: + Executed after the data files are synchronized. + +Some examples can be found in the `contrib/caldav/hooks/` directory of the +calcurse source tree. + How It Works ------------ -- cgit v1.2.3-70-g09d2