mirror of
https://github.com/tomasriveral/NoteWrapper.git
synced 2026-08-12 02:18:38 +02:00
Merge (#18) from tomasriveral/readme-configuration
fix: default configuration replace ~/Documents/Notes to ~/Documents which should exist in most systems
This commit is contained in:
@@ -78,7 +78,7 @@ nix-build
|
|||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Configure `./config.json` (it is automatically created on first launch if it does not already exist).
|
5. [Configure](#configuration) `~/.config/notewrapper/config.json` (it is automatically created on first launch if it does not already exist).
|
||||||
6. Run the program:
|
6. Run the program:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@@ -199,6 +199,7 @@ Edit `~/.config/notewrapper/config.json`. If it does not exist, it will be creat
|
|||||||
|
|
||||||
Note:
|
Note:
|
||||||
* Directories must end with `/`.
|
* Directories must end with `/`.
|
||||||
|
* All directories used must exist.
|
||||||
* Elements of `directory` and `backup.directory` must match exactly.
|
* Elements of `directory` and `backup.directory` must match exactly.
|
||||||
* Directories set in `directory` but not in `backup.directory` won't be backed up.
|
* Directories set in `directory` but not in `backup.directory` won't be backed up.
|
||||||
* Directories set in `backup.directory` but not in `directory` will be ignored.
|
* Directories set in `backup.directory` but not in `directory` will be ignored.
|
||||||
|
|||||||
+4
-2
@@ -145,7 +145,7 @@ void initAppFilesAndDirs(const char *home, const int shouldDebug) {
|
|||||||
error(!w, "program", "fopen failed opening %s");
|
error(!w, "program", "fopen failed opening %s");
|
||||||
fprintf(w, //TODO CHANGE default json
|
fprintf(w, //TODO CHANGE default json
|
||||||
"{\n"
|
"{\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"
|
" \"render\": true,\n"
|
||||||
" \"jumpToEndOfFileOnLaunch\": true,\n"
|
" \"jumpToEndOfFileOnLaunch\": true,\n"
|
||||||
" \"editor\": \"neovim\",\n"
|
" \"editor\": \"neovim\",\n"
|
||||||
@@ -154,7 +154,9 @@ void initAppFilesAndDirs(const char *home, const int shouldDebug) {
|
|||||||
" \"newLineOnOpening\": true,\n"
|
" \"newLineOnOpening\": true,\n"
|
||||||
" \"backup\": {\n"
|
" \"backup\": {\n"
|
||||||
" \"enable\": false,\n"
|
" \"enable\": false,\n"
|
||||||
" \"directory\": \"/path/to/backup\",\n"
|
" \"directory\": {\n"
|
||||||
|
" \"~/Documents/\": \"path/to/backup/\"\n"
|
||||||
|
" },\n"
|
||||||
" \"interval\": \"weekly\",\n"
|
" \"interval\": \"weekly\",\n"
|
||||||
" \"rsyncArgs\": [\"-Lqah\", \"--update\"]\n"
|
" \"rsyncArgs\": [\"-Lqah\", \"--update\"]\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user