Last Sync: 2025-08-09 13:16 (Mobile)
This commit is contained in:
parent
df2eae7538
commit
eb61ffd344
7 changed files with 38 additions and 14 deletions
2
.obsidian/community-plugins.json
vendored
2
.obsidian/community-plugins.json
vendored
|
@ -4,5 +4,5 @@
|
||||||
"homepage",
|
"homepage",
|
||||||
"obsidian-style-settings",
|
"obsidian-style-settings",
|
||||||
"lazy-plugins",
|
"lazy-plugins",
|
||||||
"dynamic-outline"
|
"iconic"
|
||||||
]
|
]
|
16
.obsidian/plugins/folder-notes/main.js
vendored
16
.obsidian/plugins/folder-notes/main.js
vendored
|
@ -230,6 +230,11 @@ var ExistingFolderNoteModal = class extends import_obsidian.Modal {
|
||||||
// src/template.ts
|
// src/template.ts
|
||||||
var import_obsidian2 = require("obsidian");
|
var import_obsidian2 = require("obsidian");
|
||||||
async function applyTemplate(plugin, file, leaf, templatePath) {
|
async function applyTemplate(plugin, file, leaf, templatePath) {
|
||||||
|
const fileContent = await plugin.app.vault.read(file).catch((err) => {
|
||||||
|
console.error(`Error reading file ${file.path}:`, err);
|
||||||
|
});
|
||||||
|
if (fileContent !== "")
|
||||||
|
return;
|
||||||
const templateFile = templatePath ? plugin.app.vault.getAbstractFileByPath(templatePath) : null;
|
const templateFile = templatePath ? plugin.app.vault.getAbstractFileByPath(templatePath) : null;
|
||||||
if (templateFile && templateFile instanceof import_obsidian2.TFile) {
|
if (templateFile && templateFile instanceof import_obsidian2.TFile) {
|
||||||
try {
|
try {
|
||||||
|
@ -3779,12 +3784,18 @@ var TemplateSuggest = class extends import_obsidian21.AbstractInputSuggest {
|
||||||
if ((!templateFolder || templateFolder.trim() === "") && !templaterPlugin) {
|
if ((!templateFolder || templateFolder.trim() === "") && !templaterPlugin) {
|
||||||
files = this.plugin.app.vault.getFiles().filter((file) => file.path.toLowerCase().includes(lower_input_str));
|
files = this.plugin.app.vault.getFiles().filter((file) => file.path.toLowerCase().includes(lower_input_str));
|
||||||
} else {
|
} else {
|
||||||
let folder;
|
let folder = null;
|
||||||
if (templaterPlugin) {
|
if (templaterPlugin) {
|
||||||
folder = this.plugin.app.vault.getAbstractFileByPath((_b = (_a = templaterPlugin.plugin) == null ? void 0 : _a.settings) == null ? void 0 : _b.templates_folder);
|
folder = this.plugin.app.vault.getAbstractFileByPath((_b = (_a = templaterPlugin.plugin) == null ? void 0 : _a.settings) == null ? void 0 : _b.templates_folder);
|
||||||
|
if (!(folder instanceof import_obsidian21.TFolder)) {
|
||||||
|
return [{ path: "", name: "You need to set the Templates folder in the Templater settings first." }];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
folder = this.plugin.app.vault.getAbstractFileByPath(templateFolder);
|
folder = this.plugin.app.vault.getAbstractFileByPath(templateFolder);
|
||||||
}
|
}
|
||||||
|
if (!(folder instanceof import_obsidian21.TFolder)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
import_obsidian21.Vault.recurseChildren(folder, (file) => {
|
import_obsidian21.Vault.recurseChildren(folder, (file) => {
|
||||||
if (file instanceof import_obsidian21.TFile && file.path.toLowerCase().includes(lower_input_str)) {
|
if (file instanceof import_obsidian21.TFile && file.path.toLowerCase().includes(lower_input_str)) {
|
||||||
files.push(file);
|
files.push(file);
|
||||||
|
@ -8111,6 +8122,9 @@ var FolderNotesPlugin = class extends import_obsidian48.Plugin {
|
||||||
this.registerDomEvent(document, "click", (evt) => {
|
this.registerDomEvent(document, "click", (evt) => {
|
||||||
this.handleFileExplorerClick(evt);
|
this.handleFileExplorerClick(evt);
|
||||||
}, true);
|
}, true);
|
||||||
|
this.registerDomEvent(document, "auxclick", (evt) => {
|
||||||
|
this.handleFileExplorerClick(evt);
|
||||||
|
}, true);
|
||||||
const fileExplorerPlugin = this.app.internalPlugins.getEnabledPluginById("file-explorer");
|
const fileExplorerPlugin = this.app.internalPlugins.getEnabledPluginById("file-explorer");
|
||||||
if (fileExplorerPlugin) {
|
if (fileExplorerPlugin) {
|
||||||
const originalRevealInFolder = fileExplorerPlugin.revealInFolder.bind(fileExplorerPlugin);
|
const originalRevealInFolder = fileExplorerPlugin.revealInFolder.bind(fileExplorerPlugin);
|
||||||
|
|
2
.obsidian/plugins/folder-notes/manifest.json
vendored
2
.obsidian/plugins/folder-notes/manifest.json
vendored
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "folder-notes",
|
"id": "folder-notes",
|
||||||
"name": "Folder notes",
|
"name": "Folder notes",
|
||||||
"version": "1.8.15",
|
"version": "1.8.16",
|
||||||
"minAppVersion": "0.15.0",
|
"minAppVersion": "0.15.0",
|
||||||
"description": "Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.",
|
"description": "Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.",
|
||||||
"author": "Lost Paul",
|
"author": "Lost Paul",
|
||||||
|
|
7
.obsidian/plugins/lazy-plugins/data.json
vendored
7
.obsidian/plugins/lazy-plugins/data.json
vendored
|
@ -59,6 +59,7 @@
|
||||||
"delayBetweenPlugins": 40,
|
"delayBetweenPlugins": 40,
|
||||||
"defaultStartupType": "short",
|
"defaultStartupType": "short",
|
||||||
"showDescriptions": true,
|
"showDescriptions": true,
|
||||||
|
"enableDependencies": false,
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"dataview": {
|
"dataview": {
|
||||||
"startupType": "short"
|
"startupType": "short"
|
||||||
|
@ -95,6 +96,12 @@
|
||||||
},
|
},
|
||||||
"obsidian-icon-shortcodes": {
|
"obsidian-icon-shortcodes": {
|
||||||
"startupType": "long"
|
"startupType": "long"
|
||||||
|
},
|
||||||
|
"obsidian-sortable": {
|
||||||
|
"startupType": "short"
|
||||||
|
},
|
||||||
|
"typewriter-mode": {
|
||||||
|
"startupType": "short"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
.obsidian/plugins/lineage/data.json
vendored
2
.obsidian/plugins/lineage/data.json
vendored
|
@ -2,7 +2,7 @@
|
||||||
"documents": {
|
"documents": {
|
||||||
"Campagnes/Absolue Nécessité/AN-0.md": {
|
"Campagnes/Absolue Nécessité/AN-0.md": {
|
||||||
"documentFormat": "sections",
|
"documentFormat": "sections",
|
||||||
"viewType": "lineage",
|
"viewType": "markdown",
|
||||||
"activeSection": "2.1.1.1",
|
"activeSection": "2.1.1.1",
|
||||||
"pinnedSections": {
|
"pinnedSections": {
|
||||||
"sections": []
|
"sections": []
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"Bienvenue.md":{"anchor":0,"head":0},"Campagnes/Absolue Nécessité/Personnages/Gustavio.md":{"anchor":1152,"head":1152},"Campagnes/Absolue Nécessité/Personnages/Althéa.md":{"anchor":1490,"head":1490},"Campagnes/Absolue Nécessité/Lieux/Cité Franche.md":{"anchor":4025,"head":4025},"Templates/character.md":{"anchor":608,"head":608},"Templates/Statblock v2.md":{"anchor":983,"head":983},"Campagnes/Absolue Nécessité/AN-Préface.md":{"anchor":990,"head":990},"Atlas/Créatures/Aristocrate.md":{"anchor":1111,"head":1111},"Atlas/Créatures/Bandits Vampiriens.md":{"anchor":3215,"head":3215},"Campagnes/Absolue Nécessité/AN-0.md":{"anchor":4652,"head":4652},"Campagnes/Absolue Nécessité/Personnages/Hrysanthéïs.md":{"anchor":88,"head":88}}
|
{}
|
21
.obsidian/workspace-mobile.json
vendored
21
.obsidian/workspace-mobile.json
vendored
|
@ -49,7 +49,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "search",
|
"type": "search",
|
||||||
"state": {
|
"state": {
|
||||||
"query": "[\"métier\"]",
|
"query": "",
|
||||||
"matchingCase": false,
|
"matchingCase": false,
|
||||||
"explainSearch": false,
|
"explainSearch": false,
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
|
@ -67,7 +67,9 @@
|
||||||
"type": "tag",
|
"type": "tag",
|
||||||
"state": {
|
"state": {
|
||||||
"sortOrder": "frequency",
|
"sortOrder": "frequency",
|
||||||
"useHierarchy": true
|
"useHierarchy": true,
|
||||||
|
"showSearch": false,
|
||||||
|
"searchQuery": ""
|
||||||
},
|
},
|
||||||
"icon": "lucide-tags",
|
"icon": "lucide-tags",
|
||||||
"title": "Tags"
|
"title": "Tags"
|
||||||
|
@ -143,7 +145,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "outline",
|
"type": "outline",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Campagnes/Absolue Nécessité/Personnages/Baron Terdéric d'Azura.md",
|
"file": "Bienvenue.md",
|
||||||
"followCursor": false,
|
"followCursor": false,
|
||||||
"showSearch": false,
|
"showSearch": false,
|
||||||
"searchQuery": ""
|
"searchQuery": ""
|
||||||
|
@ -182,19 +184,20 @@
|
||||||
"active": "e7a7b303c61786dc",
|
"active": "e7a7b303c61786dc",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"Bienvenue.md",
|
"Bienvenue.md",
|
||||||
"Campagnes/Absolue Nécessité/Personnages/Personnages.md",
|
|
||||||
"Campagnes/Absolue Nécessité/AN-0.md",
|
"Campagnes/Absolue Nécessité/AN-0.md",
|
||||||
|
"Campagnes/Absolue Nécessité/Absolue Nécessité.canvas",
|
||||||
|
"Campagnes/Absolue Nécessité/AN-Préface.md",
|
||||||
|
"Sandbox.md",
|
||||||
|
"Campagnes/Absolue Nécessité/Lieux/Cité Franche.md",
|
||||||
|
"Campagnes/Absolue Nécessité/Personnages/Personnages.md",
|
||||||
|
"Campagnes/Absolue Nécessité/Personnages/Hrysanthéïs.md",
|
||||||
"Campagnes/Absolue Nécessité/Personnages/Baron Terdéric d'Azura.md",
|
"Campagnes/Absolue Nécessité/Personnages/Baron Terdéric d'Azura.md",
|
||||||
"Campagnes/Absolue Nécessité/Personnages/Althéa.md",
|
"Campagnes/Absolue Nécessité/Personnages/Althéa.md",
|
||||||
"Campagnes/Absolue Nécessité/Lieux/Cité Franche.md",
|
|
||||||
"Sandbox.md",
|
|
||||||
"Templates/character.md",
|
"Templates/character.md",
|
||||||
"Campagnes/Absolue Nécessité/Lieux/Cyrillane.md",
|
"Campagnes/Absolue Nécessité/Lieux/Cyrillane.md",
|
||||||
"Campagnes/Absolue Nécessité/Personnages/Hrysanthéïs.md",
|
|
||||||
"Campagnes/Absolue Nécessité/Personnages/Gustavio.md",
|
"Campagnes/Absolue Nécessité/Personnages/Gustavio.md",
|
||||||
"illustrations/Baron.jpg",
|
"illustrations/Baron.jpg",
|
||||||
"Templates/Statblock v2.md",
|
"Templates/Statblock v2.md",
|
||||||
"Templates/Statblock.md",
|
"Templates/Statblock.md"
|
||||||
"Campagnes/Absolue Nécessité/Absolue Nécessité.canvas"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in a new issue