This commit is contained in:
Oscar Plaisant
2024-05-21 11:40:42 +02:00
parent 95c81f9cb3
commit de3a0dcf0f
75 changed files with 87483 additions and 93999 deletions

View File

@@ -7,7 +7,7 @@
""
]
],
"trigger_on_file_creation": false,
"trigger_on_file_creation": true,
"auto_jump_to_cursor": false,
"enable_system_commands": false,
"shell_path": "",
@@ -15,11 +15,12 @@
"enable_folder_templates": true,
"folder_templates": [
{
"folder": "",
"template": ""
"folder": "/",
"template": "templates/nouvelle note.md"
}
],
"syntax_highlighting": true,
"syntax_highlighting_mobile": false,
"enabled_templates_hotkeys": [
""
],

View File

@@ -1671,7 +1671,7 @@ var FolderSuggest = class extends TextInputSuggest {
folders.push(folder);
}
});
return folders;
return folders.slice(0, 1e3);
}
renderSuggestion(file, el) {
el.setText(file.path);
@@ -1791,7 +1791,7 @@ var FileSuggest = class extends TextInputSuggest {
files.push(file);
}
});
return files;
return files.slice(0, 1e3);
}
renderSuggestion(file, el) {
el.setText(file.path);
@@ -3659,7 +3659,7 @@ var Templater = class {
const oldSelections = doc.listSelections();
doc.replaceSelection(output_content);
if (active_editor.file) {
await app.vault.append(active_editor.file, "");
await app.vault.modify(active_editor.file, editor.getValue());
}
app.workspace.trigger("templater:template-appended", {
view: active_view,

View File

@@ -1,7 +1,7 @@
{
"id": "templater-obsidian",
"name": "Templater",
"version": "2.3.1",
"version": "2.3.2",
"description": "Create and use templates",
"minAppVersion": "1.5.0",
"author": "SilentVoid",