1
0
Fork 0

Manual backup: 2023-12-12 23:17:24

This commit is contained in:
Alexander Schäferdiek 2023-12-12 23:17:24 +01:00
parent cec822a349
commit 600d4143c3
4 changed files with 16 additions and 15 deletions

View file

@ -1,4 +1,5 @@
{ {
"baseFontSize": 16, "baseFontSize": 16,
"accentColor": "" "accentColor": "",
"cssTheme": ""
} }

View file

@ -70,8 +70,10 @@ var TemplaterError = class extends Error {
super(msg); super(msg);
this.console_msg = console_msg; this.console_msg = console_msg;
this.name = this.constructor.name; this.name = this.constructor.name;
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor); Error.captureStackTrace(this, this.constructor);
} }
}
}; };
async function errorWrapper(fn2, msg) { async function errorWrapper(fn2, msg) {
try { try {
@ -3643,9 +3645,6 @@ var Templater = class {
const doc = editor.getDoc(); const doc = editor.getDoc();
const oldSelections = doc.listSelections(); const oldSelections = doc.listSelections();
doc.replaceSelection(output_content); doc.replaceSelection(output_content);
if (active_view) {
await active_view.save();
}
app.workspace.trigger("templater:template-appended", { app.workspace.trigger("templater:template-appended", {
view: active_view, view: active_view,
editor: active_editor, editor: active_editor,
@ -5597,8 +5596,8 @@ var TemplaterPlugin = class extends import_obsidian17.Plugin {
this.templater.execute_startup_scripts(); this.templater.execute_startup_scripts();
}); });
} }
async unload() { onunload() {
await this.templater.functions_generator.teardown(); this.templater.functions_generator.teardown();
} }
async save_settings() { async save_settings() {
await this.saveData(this.settings); await this.saveData(this.settings);

View file

@ -1,10 +1,11 @@
{ {
"id": "templater-obsidian", "id": "templater-obsidian",
"name": "Templater", "name": "Templater",
"version": "1.18.1", "version": "1.18.3",
"description": "Create and use templates", "description": "Create and use templates",
"minAppVersion": "0.11.13", "minAppVersion": "0.11.13",
"author": "SilentVoid", "author": "SilentVoid",
"authorUrl": "https://github.com/SilentVoid13", "authorUrl": "https://github.com/SilentVoid13",
"helpUrl": "https://silentvoid13.github.io/Templater/",
"isDesktopOnly": false "isDesktopOnly": false
} }

View file

@ -4,11 +4,11 @@
"type": "split", "type": "split",
"children": [ "children": [
{ {
"id": "271ce7d7f07826e0", "id": "d847a69113acf89d",
"type": "tabs", "type": "tabs",
"children": [ "children": [
{ {
"id": "e51fb53f3abae387", "id": "5808c3dac7e7fb1f",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "empty", "type": "empty",
@ -128,16 +128,18 @@
"templater-obsidian:Templater": false "templater-obsidian:Templater": false
} }
}, },
"active": "e51fb53f3abae387", "active": "5808c3dac7e7fb1f",
"lastOpenFiles": [ "lastOpenFiles": [
"KB/Linux/Desktop/ArchLinux/Theming Qt and Gtk.md",
"KB/Linux/Desktop/ArchLinux/sway.md",
"KB/Linux/Desktop/ArchLinux/i3.md",
"KB/Linux/Desktop/ArchLinux/Surface.md", "KB/Linux/Desktop/ArchLinux/Surface.md",
"KB/Linux/Desktop/ArchLinux/Audio/EQ.md",
"KB/Linux/Desktop/Mail.md", "KB/Linux/Desktop/Mail.md",
"KB/Linux/Desktop/Steam.md", "KB/Linux/Desktop/Steam.md",
"KB/Linux/Desktop/ArchLinux/Tweaks.md", "KB/Linux/Desktop/ArchLinux/Tweaks.md",
"KB/Linux/Desktop/ArchLinux/Theming Qt and Gtk.md",
"KB/Linux/Desktop/ArchLinux/Audio/aptx and pulseaudio.md", "KB/Linux/Desktop/ArchLinux/Audio/aptx and pulseaudio.md",
"KB/Linux/Server/systemd.md", "KB/Linux/Server/systemd.md",
"KB/Linux/Desktop/ArchLinux/i3.md",
"KB/Linux/Desktop/GPG - PGP.md", "KB/Linux/Desktop/GPG - PGP.md",
"KB/Linux/Desktop/ArchLinux/Fonts.md", "KB/Linux/Desktop/ArchLinux/Fonts.md",
"KB/Linux/Desktop/ArchLinux/Firewall.md", "KB/Linux/Desktop/ArchLinux/Firewall.md",
@ -156,8 +158,6 @@
"KB/Linux/Server/ArchLinux/SSH Guard.md", "KB/Linux/Server/ArchLinux/SSH Guard.md",
"KB/Linux/AMD.md", "KB/Linux/AMD.md",
"KB/Linux/Server/Domains.md", "KB/Linux/Server/Domains.md",
"KB/Linux/DNS.md",
"KB/Linux/GNOME.md",
"KB/Linux/Desktop/Firewall" "KB/Linux/Desktop/Firewall"
] ]
} }