feat: add backup file management settings
- Added settings UI to enable/disable .bak file creation when saving files - Created settings storage in .obsidian/obsiviewer.json to persist backup preferences - Added API endpoints to read/write backup settings (/api/settings) - Implemented automatic cleanup of existing .bak files when disabling backups - Modified file save operations to respect backup setting across notes, bookmarks and graph files - Removed existing .bak files from version control
This commit is contained in:
Vendored
-24
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"type": "group",
|
||||
"ctime": 1759433919563,
|
||||
"title": "test",
|
||||
"items": [
|
||||
{
|
||||
"type": "file",
|
||||
"ctime": 1759433952208,
|
||||
"path": "HOME.md",
|
||||
"title": "HOME"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"ctime": 1759434060575,
|
||||
"path": "test.md",
|
||||
"title": "Page de test Markdown"
|
||||
}
|
||||
],
|
||||
"rev": "9mgl-40"
|
||||
}
|
||||
Vendored
-22
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"collapse-filter": false,
|
||||
"search": "",
|
||||
"showTags": false,
|
||||
"showAttachments": false,
|
||||
"hideUnresolved": false,
|
||||
"showOrphans": true,
|
||||
"collapse-color-groups": false,
|
||||
"colorGroups": [],
|
||||
"collapse-display": false,
|
||||
"showArrow": false,
|
||||
"textFadeMultiplier": 0,
|
||||
"nodeSizeMultiplier": 1,
|
||||
"lineSizeMultiplier": 1,
|
||||
"collapse-forces": false,
|
||||
"centerStrength": 0.3,
|
||||
"repelStrength": 17,
|
||||
"linkStrength": 0.5,
|
||||
"linkDistance": 200,
|
||||
"scale": 1,
|
||||
"close": false
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"enableBackups": false
|
||||
}
|
||||
Vendored
+1
-1
@@ -178,10 +178,10 @@
|
||||
},
|
||||
"active": "8309e5042a8fb85c",
|
||||
"lastOpenFiles": [
|
||||
"dessin.excalidraw.md",
|
||||
"Dessin-02.png",
|
||||
"mixe/Relaxing Music relax music music _hls-480_.mp4",
|
||||
"Dessin-02.excalidraw.md",
|
||||
"dessin.excalidraw.md",
|
||||
"Drawing-20251028-1452.excalidraw.md",
|
||||
"Dessin-02.excalidraw.md.tmp",
|
||||
"Dessin-02.excalidraw.md.bak",
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
---
|
||||
titre: archived-note
|
||||
auteur: Bruno Charest
|
||||
creation_date: 2025-10-19T11:13:12-04:00
|
||||
modification_date: 2025-10-19T12:09:46-04:00
|
||||
catégorie: ""
|
||||
tags:
|
||||
- bruno
|
||||
- configuration
|
||||
aliases: []
|
||||
status: en-cours
|
||||
publish: true
|
||||
favoris: true
|
||||
template: true
|
||||
task: true
|
||||
archive: false
|
||||
draft: true
|
||||
private: true
|
||||
---
|
||||
# Archived Note
|
||||
|
||||
#bruno
|
||||
|
||||
|
||||
This note was archived and moved to trash.
|
||||
@@ -1 +0,0 @@
|
||||
nouveau message !!!
|
||||
@@ -1,23 +0,0 @@
|
||||
---
|
||||
titre: old-note-2
|
||||
auteur: Bruno Charest
|
||||
creation_date: 2025-10-19T11:13:12-04:00
|
||||
modification_date: 2025-10-19T12:09:46-04:00
|
||||
catégorie: ""
|
||||
aliases: []
|
||||
status: en-cours
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
tags:
|
||||
- configuration
|
||||
- bruno
|
||||
- markdown
|
||||
---
|
||||
# Old Note 2
|
||||
|
||||
This note is in a subfolder of trash.
|
||||
@@ -1,3 +0,0 @@
|
||||
# Old Note 3
|
||||
|
||||
Another note in the old-folder subfolder.
|
||||
@@ -1,22 +0,0 @@
|
||||
---
|
||||
titre: old
|
||||
auteur: Bruno Charest
|
||||
creation_date: 2025-10-19T12:28:31-04:00
|
||||
modification_date: 2025-10-19T12:28:31-04:00
|
||||
catégorie: ""
|
||||
tags: []
|
||||
aliases: []
|
||||
status: en-cours
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
---
|
||||
|
||||
# Vieux fichier
|
||||
|
||||
## Section 1
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
# Deleted Note 1
|
||||
|
||||
This is a test note in trash.
|
||||
@@ -1,3 +0,0 @@
|
||||
# Deleted Note 1
|
||||
|
||||
This is a test note in trash.
|
||||
@@ -1,56 +0,0 @@
|
||||
---
|
||||
titre: "test-add-properties"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-23T13:11:50-04:00"
|
||||
modification_date: "2025-10-23T13:11:50-04:00"
|
||||
aliases: [""]
|
||||
status: "en-cours"
|
||||
publish: false
|
||||
favoris: true
|
||||
template: false
|
||||
task: true
|
||||
archive: false
|
||||
draft: false
|
||||
private: true
|
||||
color: "#22C55E"
|
||||
tags:
|
||||
- tag1
|
||||
- accueil
|
||||
- tag3
|
||||
---
|
||||
Allo ceci est un tests
|
||||
toto
|
||||
|
||||
# Test 1 Markdown
|
||||
|
||||
## Titres
|
||||
|
||||
# Niveau 1
|
||||
#tag1 #tag2 #test #test2
|
||||
|
||||
|
||||
# Nouveau-markdown
|
||||
|
||||
## sous-titre
|
||||
- [ ] allo
|
||||
- [ ] toto
|
||||
- [ ] tata
|
||||
|
||||
## sous-titre 2
|
||||
|
||||
#tag1 #tag2 #tag3 #tag4
|
||||
|
||||
## sous-titre 3
|
||||
|
||||
## sous-titre 4
|
||||
|
||||
## sous-titre 5
|
||||
test
|
||||
|
||||
## sous-titre 6
|
||||
test
|
||||
|
||||
## sous-titre 7
|
||||
test
|
||||
|
||||
## sous-titre 8
|
||||
@@ -1,19 +0,0 @@
|
||||
---
|
||||
titre: test-new-file
|
||||
auteur: Bruno Charest
|
||||
creation_date: 2025-10-19T12:15:21-04:00
|
||||
modification_date: 2025-10-19T12:15:21-04:00
|
||||
catégorie: ""
|
||||
aliases: []
|
||||
status: en-cours
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
tags:
|
||||
- home
|
||||
- accueil
|
||||
---
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
titre: "Nouvelle note 3"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-24T15:44:07.120Z"
|
||||
modification_date: "2025-10-24T15:44:07.120Z"
|
||||
status: "en-cours"
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
---
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
titre: "Nouvelle note 16"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-27T18:01:11.627Z"
|
||||
modification_date: "2025-10-27T18:01:11.627Z"
|
||||
status: "en-cours"
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
---
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
---
|
||||
titre: "Test Note"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-23"
|
||||
modification_date: "2025-10-23"
|
||||
status: "draft"
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: true
|
||||
private: false
|
||||
---
|
||||
|
||||
Contenu de test
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
titre: "Nouvelle note 11"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-26T14:55:56.550Z"
|
||||
modification_date: "2025-10-26T14:55:56.550Z"
|
||||
status: "en-cours"
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
---
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
titre: "Nouvelle note 12"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-26T14:55:57.870Z"
|
||||
modification_date: "2025-10-26T14:55:57.870Z"
|
||||
status: "en-cours"
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
---
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
titre: "Nouvelle note 7"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-26T13:17:42.008Z"
|
||||
modification_date: "2025-10-26T13:17:42.008Z"
|
||||
status: "en-cours"
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
---
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
titre: "Nouvelle note 8"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-26T14:55:08.540Z"
|
||||
modification_date: "2025-10-26T14:55:08.540Z"
|
||||
status: "en-cours"
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
---
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
titre: "Nouvelle note 9"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-26T14:55:54.071Z"
|
||||
modification_date: "2025-10-26T14:55:54.071Z"
|
||||
status: "en-cours"
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
---
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
titre: "Nouvelle note"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-26T13:14:53.395Z"
|
||||
modification_date: "2025-10-26T13:14:53.395Z"
|
||||
status: "en-cours"
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
---
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
---
|
||||
titre: "test-add-properties"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-23T13:11:50-04:00"
|
||||
modification_date: "2025-10-27T15:13:08-04:00"
|
||||
status: "en-cours"
|
||||
publish: false
|
||||
favoris: true
|
||||
template: false
|
||||
task: true
|
||||
archive: false
|
||||
draft: false
|
||||
private: true
|
||||
tags:
|
||||
- tagtag
|
||||
---
|
||||
Allo ceci est un tests
|
||||
toto
|
||||
|
||||
# Test 1 Markdown
|
||||
|
||||
## Titres
|
||||
|
||||
# Niveau 1
|
||||
#tag1 #tag2 #test #test2
|
||||
|
||||
|
||||
# Nouveau-markdown
|
||||
|
||||
## sous-titre
|
||||
- [ ] allo
|
||||
- [ ] toto
|
||||
- [ ] tata
|
||||
|
||||
## sous-titre 2
|
||||
|
||||
#tag1 #tag2 #tag3 #tag4
|
||||
|
||||
## sous-titre 3
|
||||
|
||||
## sous-titre 4
|
||||
|
||||
## sous-titre 5
|
||||
test
|
||||
|
||||
## sous-titre 6
|
||||
test
|
||||
|
||||
## sous-titre 7
|
||||
test
|
||||
|
||||
## sous-titre 8
|
||||
@@ -1,3 +0,0 @@
|
||||
# Test File
|
||||
|
||||
This is a test file for API testing.
|
||||
@@ -1,55 +0,0 @@
|
||||
---
|
||||
titre: "Nouveau-markdown"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-19T21:42:53-04:00"
|
||||
modification_date: "2025-10-19T21:43:06-04:00"
|
||||
status: "en-cours"
|
||||
publish: true
|
||||
favoris: false
|
||||
template: true
|
||||
task: true
|
||||
archive: true
|
||||
draft: true
|
||||
private: true
|
||||
toto: "tata"
|
||||
color: "#EF4444"
|
||||
---
|
||||
Allo ceci est un tests
|
||||
toto
|
||||
|
||||
# Test 1 Markdown
|
||||
|
||||
## Titres
|
||||
|
||||
# Niveau 1
|
||||
#tag1 #tag2 #test #test2
|
||||
|
||||
|
||||
# Nouveau-markdown
|
||||
|
||||
## sous-titre
|
||||
- [ ] allo
|
||||
- [ ] toto
|
||||
- [ ] tata
|
||||
|
||||
## sous-titre 2
|
||||
|
||||
#tag1 #tag2 #tag3 #tag4
|
||||
|
||||
## sous-titre 3
|
||||
|
||||
## sous-titre 4
|
||||
|
||||
## sous-titre 5
|
||||
test
|
||||
|
||||
## sous-titre 6
|
||||
test
|
||||
|
||||
## sous-titre 7
|
||||
test
|
||||
|
||||
## sous-titre 8
|
||||
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
titre: "Nouvelle note 2"
|
||||
auteur: "Bruno Charest"
|
||||
creation_date: "2025-10-24T12:24:03.706Z"
|
||||
modification_date: "2025-10-24T12:24:03.706Z"
|
||||
status: "en-cours"
|
||||
publish: false
|
||||
favoris: false
|
||||
template: false
|
||||
task: false
|
||||
archive: false
|
||||
draft: false
|
||||
private: false
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user