agendafs

A filesystem for your calendar.

git clone git://mccd.space/agendafs
commit c0dffa75be26e3ab1fdeec3a86afc1ca9d763ef1
parent 461281030cb44c45de6a9194b39d3ec7ee1adc8f
Author: Marc Coquand <marc@coquand.email>
Date:   Fri, 27 Jun 2025 14:22:27 +0100

Rename project

Diffstat:
MMakefile | 10+++++-----
MREADME.md | 15+++++++++------
Mjournal_entry.c | 2+-
Mjournal_entry.h | 2+-
Mmain.c | 2+-
5 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/Makefile b/Makefile
@@ -3,13 +3,13 @@ CFLAGS = -Wall -O3
 CFLAGS_DEBUG = -Wall -g
 LIBS = `pkg-config uuid fuse3 libical --cflags --libs`
 
-all: caldavfs
+all: agendafs
 
-caldavfs: main.c util.c hashmap.c journal_entry.c tree.c
-	$(CC) $(CFLAGS) *.c -o mount_caldavfs $(LIBS)
+agendafs: main.c util.c hashmap.c journal_entry.c tree.c
+	$(CC) $(CFLAGS) *.c -o mount_agendafs $(LIBS)
 
 debug: main.c util.c hashmap.c journal_entry.c tree.c
-	$(CC) $(CFLAGS_DEBUG) $(DEBUG_FLAGS) *.c -o mount_caldavfs-debug $(LIBS)
+	$(CC) $(CFLAGS_DEBUG) $(DEBUG_FLAGS) *.c -o mount_agendafs-debug $(LIBS)
 
 clean:
-	rm -f caldavfs caldavfs-debug
+	rm -f agendafs agendafs-debug
diff --git a/README.md b/README.md
@@ -1,16 +1,19 @@
-# caldavfs
+# agendafs
 
-`caldavfs` is a FUSE-based filesystem written in C that works with
+`agendafs` is a FUSE-based filesystem written in C that works with
 [vdirsyncer](https://vdirsyncer.pimutils.org/) to allow you to sync your
 notes to caldav.
 
-To use it:
+To use it, setup vdirsyncer, locate the ical directory where you want to store
+your notes:
 
 ```
 $ export CALDAVFS_ICS_DIR='~/.journals/the-journal'
-$ mount_caldavfs /tmp/local-journal
+$ mount_agendafs /tmp/local-journal
 ```
 
+See also my notes on creating a calendar with VJOURNAL support.
+
 Now your `.ics` files are available as plain-text files `/tmp/local-journal`.
 
 ## Motivation
@@ -41,7 +44,7 @@ These are not really intended to be edited by users.
 
 Status: Works but unstable, probably leaks memory. Still missing features.
 
-See also [todo tracker](https://todo.sr.ht/~marcc/caldavfs)
+See also [todo tracker](https://todo.sr.ht/~marcc/agendafs)
 
 ## Limitations
 
@@ -73,7 +76,7 @@ $ make
 $ mkdir /tmp/journal
 $ export CALDAVFS_ICS_DIR=~/.calendars/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa/
 $ # -d -f to launch in debug mode, see libfuse for more options
-$ mount_caldavfs -d -f /tmp/journal
+$ mount_agendafs -d -f /tmp/journal
 $ # Or if you are for some reason not using plan9 rc, replace
 $ # `{date +'...'} with $(date +'...')
 $ new_file=/tmp/journal/`{date +'%Y%m%d-%H:%M.txt'}
diff --git a/journal_entry.c b/journal_entry.c
@@ -749,7 +749,7 @@ write_entry_to_ical_file(const struct journal_entry *entry)
 	return 0;
 }
 size_t
-load_caldavfs_environment()
+load_agendafs_environment()
 {
 	char *ics_dir_env = getenv("CALDAVFS_ICS_DIR");
 
diff --git a/journal_entry.h b/journal_entry.h
@@ -140,7 +140,7 @@ int
 build_notes_hashmap();
 
 size_t
-load_caldavfs_environment();
+load_agendafs_environment();
 char *
 create_new_unique_ics_uid();
 
diff --git a/main.c b/main.c
@@ -424,7 +424,7 @@ main(int argc, char *argv[])
 
 	fuse_tree_root = create_tree_node(NULL, NULL);
 
-	if (load_caldavfs_environment() != 0) {
+	if (load_agendafs_environment() != 0) {
 		fprintf(stderr, "Failed to load ICS directory\n");
 		exit(1);
 	}