From a877908fd8c8c456697ea9050350a042f7c48484 Mon Sep 17 00:00:00 2001 From: LUCASTUCIOUS Date: Tue, 4 Apr 2023 00:32:48 +0200 Subject: [PATCH] vault backup: 2023-04-04 00:32:48 --- .obsidian/graph.json | 2 +- .obsidian/plugins/longform/data.json | 26 ------------------- .obsidian/plugins/longform/sessions.json | 2 +- .obsidian/vault-stats.json | 2 +- Projets/Absolue Nécessitée/Index.md | 2 +- .../Scenes/Diner chez Althéa.md | 2 +- .../Absolue Nécessitée/test-manuscript.md | 4 --- Projets/Scripts/replaceLinks.js | 4 ++- 8 files changed, 8 insertions(+), 36 deletions(-) delete mode 100644 Projets/Absolue Nécessitée/test-manuscript.md diff --git a/.obsidian/graph.json b/.obsidian/graph.json index f5f36ec..45ef9c4 100644 --- a/.obsidian/graph.json +++ b/.obsidian/graph.json @@ -39,6 +39,6 @@ "repelStrength": 10, "linkStrength": 1, "linkDistance": 250, - "scale": 0.4675508913371771, + "scale": 0.08632077083057706, "close": false } \ No newline at end of file diff --git a/.obsidian/plugins/longform/data.json b/.obsidian/plugins/longform/data.json index 995f10a..239bd12 100644 --- a/.obsidian/plugins/longform/data.json +++ b/.obsidian/plugins/longform/data.json @@ -58,32 +58,6 @@ } } ] - }, - "test": { - "name": "test", - "description": "", - "steps": [ - { - "id": "Projets/Scripts/replaceLinks.js", - "optionValues": { - "removeH1": true, - "removeFrontmatter": false - } - }, - { - "id": "concatenate-text", - "optionValues": { - "separator": "\n\n" - } - }, - { - "id": "write-to-note", - "optionValues": { - "target": "test-manuscript.md", - "open-after": true - } - } - ] } } } \ No newline at end of file diff --git a/.obsidian/plugins/longform/sessions.json b/.obsidian/plugins/longform/sessions.json index 9a44ad2..330d80e 100644 --- a/.obsidian/plugins/longform/sessions.json +++ b/.obsidian/plugins/longform/sessions.json @@ -1 +1 @@ -[{"start":"2023-04-03T21:23:19.384Z","total":0,"drafts":{"Projets/Absolue Nécessitée/Index.md":{"total":0,"scenes":{"Chapitre 1 - Montée en puissance":0,"Diner chez Althéa":0,"Assassinat raté":0}}}}] \ No newline at end of file +[{"start":"2023-04-03T22:32:04.607Z","total":0,"drafts":{"Projets/Absolue Nécessitée/Index.md":{"total":0,"scenes":{"Chapitre 1 - Montée en puissance":0,"Diner chez Althéa":0,"Assassinat raté":0}}}},{"start":"2023-04-03T21:23:19.384Z","total":0,"drafts":{"Projets/Absolue Nécessitée/Index.md":{"total":0,"scenes":{"Chapitre 1 - Montée en puissance":0,"Diner chez Althéa":0,"Assassinat raté":0}}}}] \ No newline at end of file diff --git a/.obsidian/vault-stats.json b/.obsidian/vault-stats.json index 2bbce08..92de705 100644 --- a/.obsidian/vault-stats.json +++ b/.obsidian/vault-stats.json @@ -1 +1 @@ -{"history":{"2023-03-01":{"words":845,"characters":1255,"sentences":0,"files":123,"totalWords":29296,"totalCharacters":231518,"totalSentences":821},"2023-03-02":{"words":39,"characters":281,"sentences":0,"files":123,"totalWords":29296,"totalCharacters":231518,"totalSentences":821},"2023-03-03":{"words":644,"characters":3897,"sentences":23,"files":123,"totalWords":29940,"totalCharacters":233149,"totalSentences":844},"2023-03-05":{"words":0,"characters":0,"sentences":0,"files":0,"totalWords":29940,"totalCharacters":233149,"totalSentences":844},"2023-03-06":{"words":0,"characters":0,"sentences":0,"files":0,"totalWords":29940,"totalCharacters":233149,"totalSentences":844},"2023-03-07":{"words":16,"characters":103,"sentences":0,"files":123,"totalWords":29956,"totalCharacters":233253,"totalSentences":844},"2023-03-08":{"words":6,"characters":47,"sentences":1,"files":123,"totalWords":29964,"totalCharacters":233304,"totalSentences":845},"2023-03-10":{"words":15,"characters":102,"sentences":0,"files":124,"totalWords":30010,"totalCharacters":233650,"totalSentences":846},"2023-03-14":{"words":68,"characters":445,"sentences":4,"files":126,"totalWords":30274,"totalCharacters":235667,"totalSentences":857},"2023-03-15":{"words":585,"characters":3851,"sentences":9,"files":129,"totalWords":30998,"totalCharacters":240608,"totalSentences":868},"2023-03-16":{"words":128,"characters":820,"sentences":7,"files":131,"totalWords":31352,"totalCharacters":245878,"totalSentences":877},"2023-03-18":{"words":30,"characters":208,"sentences":0,"files":132,"totalWords":31501,"totalCharacters":247094,"totalSentences":878},"2023-03-19":{"words":0,"characters":0,"sentences":0,"files":0,"totalWords":0,"totalCharacters":0,"totalSentences":0},"2023-03-22":{"words":2568,"characters":16916,"sentences":53,"files":133,"totalWords":34073,"totalCharacters":266611,"totalSentences":932},"2023-03-24":{"words":7,"characters":50,"sentences":0,"files":133,"totalWords":34085,"totalCharacters":264035,"totalSentences":932},"2023-03-30":{"words":156,"characters":955,"sentences":9,"files":135,"totalWords":34782,"totalCharacters":265893,"totalSentences":965},"2023-03-31":{"words":129,"characters":798,"sentences":7,"files":135,"totalWords":34911,"totalCharacters":269322,"totalSentences":972},"2023-04-03":{"words":9,"characters":64,"sentences":0,"files":142,"totalWords":35205,"totalCharacters":270666,"totalSentences":988,"totalFootnotes":3,"totalCitations":0,"totalPages":117.19999999999997,"footnotes":0,"citations":0,"pages":0},"2023-04-04":{"words":0,"characters":0,"sentences":0,"pages":0,"files":0,"footnotes":0,"citations":0,"totalWords":35205,"totalCharacters":270666,"totalSentences":988,"totalFootnotes":3,"totalCitations":0,"totalPages":117.19999999999997}},"modifiedFiles":{}} \ No newline at end of file +{"history":{"2023-03-01":{"words":845,"characters":1255,"sentences":0,"files":123,"totalWords":29296,"totalCharacters":231518,"totalSentences":821},"2023-03-02":{"words":39,"characters":281,"sentences":0,"files":123,"totalWords":29296,"totalCharacters":231518,"totalSentences":821},"2023-03-03":{"words":644,"characters":3897,"sentences":23,"files":123,"totalWords":29940,"totalCharacters":233149,"totalSentences":844},"2023-03-05":{"words":0,"characters":0,"sentences":0,"files":0,"totalWords":29940,"totalCharacters":233149,"totalSentences":844},"2023-03-06":{"words":0,"characters":0,"sentences":0,"files":0,"totalWords":29940,"totalCharacters":233149,"totalSentences":844},"2023-03-07":{"words":16,"characters":103,"sentences":0,"files":123,"totalWords":29956,"totalCharacters":233253,"totalSentences":844},"2023-03-08":{"words":6,"characters":47,"sentences":1,"files":123,"totalWords":29964,"totalCharacters":233304,"totalSentences":845},"2023-03-10":{"words":15,"characters":102,"sentences":0,"files":124,"totalWords":30010,"totalCharacters":233650,"totalSentences":846},"2023-03-14":{"words":68,"characters":445,"sentences":4,"files":126,"totalWords":30274,"totalCharacters":235667,"totalSentences":857},"2023-03-15":{"words":585,"characters":3851,"sentences":9,"files":129,"totalWords":30998,"totalCharacters":240608,"totalSentences":868},"2023-03-16":{"words":128,"characters":820,"sentences":7,"files":131,"totalWords":31352,"totalCharacters":245878,"totalSentences":877},"2023-03-18":{"words":30,"characters":208,"sentences":0,"files":132,"totalWords":31501,"totalCharacters":247094,"totalSentences":878},"2023-03-19":{"words":0,"characters":0,"sentences":0,"files":0,"totalWords":0,"totalCharacters":0,"totalSentences":0},"2023-03-22":{"words":2568,"characters":16916,"sentences":53,"files":133,"totalWords":34073,"totalCharacters":266611,"totalSentences":932},"2023-03-24":{"words":7,"characters":50,"sentences":0,"files":133,"totalWords":34085,"totalCharacters":264035,"totalSentences":932},"2023-03-30":{"words":156,"characters":955,"sentences":9,"files":135,"totalWords":34782,"totalCharacters":265893,"totalSentences":965},"2023-03-31":{"words":129,"characters":798,"sentences":7,"files":135,"totalWords":34911,"totalCharacters":269322,"totalSentences":972},"2023-04-03":{"words":9,"characters":64,"sentences":0,"files":142,"totalWords":35205,"totalCharacters":270666,"totalSentences":988,"totalFootnotes":3,"totalCitations":0,"totalPages":117.19999999999997,"footnotes":0,"citations":0,"pages":0},"2023-04-04":{"words":0,"characters":0,"sentences":0,"pages":0,"files":141,"footnotes":0,"citations":0,"totalWords":35198,"totalCharacters":270613,"totalSentences":987,"totalFootnotes":3,"totalCitations":0,"totalPages":117.19999999999997}},"modifiedFiles":{"Projets/Absolue Nécessitée/Scenes/Diner chez Althéa.md":{"words":{"initial":8,"current":8},"characters":{"initial":62,"current":62},"sentences":{"initial":1,"current":1},"footnotes":{"initial":0,"current":0},"citations":{"initial":0,"current":0},"pages":{"initial":0,"current":0}}}} \ No newline at end of file diff --git a/Projets/Absolue Nécessitée/Index.md b/Projets/Absolue Nécessitée/Index.md index 2c3b1bf..5340a6a 100644 --- a/Projets/Absolue Nécessitée/Index.md +++ b/Projets/Absolue Nécessitée/Index.md @@ -2,7 +2,7 @@ longform: format: scenes title: Absolue Nécessitée - workflow: test + workflow: Default Workflow sceneFolder: Scenes scenes: - Chapitre 1 - Montée en puissance diff --git a/Projets/Absolue Nécessitée/Scenes/Diner chez Althéa.md b/Projets/Absolue Nécessitée/Scenes/Diner chez Althéa.md index e0c2099..769373f 100644 --- a/Projets/Absolue Nécessitée/Scenes/Diner chez Althéa.md +++ b/Projets/Absolue Nécessitée/Scenes/Diner chez Althéa.md @@ -1 +1 @@ -[Diner avec Althéa](../../../Scenes/Diner%20avec%20Althéa.md) \ No newline at end of file +![Diner avec Althéa](../../../Scenes/Diner%20avec%20Althéa.md) \ No newline at end of file diff --git a/Projets/Absolue Nécessitée/test-manuscript.md b/Projets/Absolue Nécessitée/test-manuscript.md deleted file mode 100644 index c60cf30..0000000 --- a/Projets/Absolue Nécessitée/test-manuscript.md +++ /dev/null @@ -1,4 +0,0 @@ - - -[Diner avec Althéa](../../../Scenes/Diner%20avec%20Althéa.md) - diff --git a/Projets/Scripts/replaceLinks.js b/Projets/Scripts/replaceLinks.js index 62e8932..439758c 100644 --- a/Projets/Scripts/replaceLinks.js +++ b/Projets/Scripts/replaceLinks.js @@ -112,12 +112,14 @@ async function replaceLinksWithContent(content, metadata, context, files, deep) } async function getLinkedContent(linkText, app, files) { + const file = files.find(file => file.basename === linkText); if(!file){ const file = files.find(file => file.path === linkText); } if(!file){ - const file = files.find(file => file.basename === getFilenameWithoutExtension(linkText)); + const fileext = getFilenameWithoutExtension(linkText); + const file = files.find(file => file.basename === fileext); } return file ? [file, await app.vault.read(file)]