From 37a0763e141549a750fb685a2c8513fd854c0a29 Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Mon, 27 Apr 2026 19:05:54 +0200 Subject: [PATCH] config: change default directory --- src/utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils.c b/src/utils.c index 0b82319..4925341 100644 --- a/src/utils.c +++ b/src/utils.c @@ -145,7 +145,7 @@ void initAppFilesAndDirs(const char *home, const int shouldDebug) { error(!w, "program", "fopen failed opening %s"); fprintf(w, //TODO CHANGE default json "{\n" -" \"directory\": [\"~/Documents/Notes/\"],\n" +" \"directory\": [\"~/Documents/\"],\n"// I personally use ~/Documents/Notes. But the dir doesn't exist most times. So for the default user it is better to put ~/Documents " \"render\": true,\n" " \"jumpToEndOfFileOnLaunch\": true,\n" " \"editor\": \"neovim\",\n" @@ -154,7 +154,9 @@ void initAppFilesAndDirs(const char *home, const int shouldDebug) { " \"newLineOnOpening\": true,\n" " \"backup\": {\n" " \"enable\": false,\n" -" \"directory\": \"/path/to/backup\",\n" +" \"directory\": {\n" +" \"~/Documents/\": \"path/to/backup/\"\n" +" },\n" " \"interval\": \"weekly\",\n" " \"rsyncArgs\": [\"-Lqah\", \"--update\"]\n" " }\n"