vault backup: 2025-08-30 08:29:39

This commit is contained in:
CrazyJasonwell committed 2025-08-30 08:29:39 +08:00
1 parent 103f448101
commit 4a08d08a96
40 files changed
+2153 -1007

No files matched your search

+3 -12
View File
@@ -7737,18 +7737,6 @@ var RedPlugin = class extends import_obsidian9.Plugin {
VIEW_TYPE_RED,
(leaf) => new RedView(leaf, this.themeManager, this.settingsManager)
);
this.app.workspace.onLayoutReady(() => {
if (this.app.workspace.getLeavesOfType(VIEW_TYPE_RED).length === 0) {
const leaf = this.app.workspace.getRightLeaf(false);
if (leaf) {
leaf.setViewState({
type: VIEW_TYPE_RED,
active: false
// 设置为 false 表示不聚焦
});
}
}
});
this.addCommand({
id: "open-mp-preview",
name: "\u6253\u5F00\u5C0F\u7EA2\u4E66\u56FE\u7247\u9884\u89C8",
@@ -7756,6 +7744,9 @@ var RedPlugin = class extends import_obsidian9.Plugin {
await this.activateView();
}
});
this.addRibbonIcon("image", "\u6253\u5F00\u5C0F\u7EA2\u4E66\u56FE\u7247\u9884\u89C8", () => {
this.activateView();
});
this.addSettingTab(new RedSettingTab(this.app, this));
}
async activateView() {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"id": "note-to-red",
"name": "Note to RED",
"version": "1.0.18",
"version": "1.0.19",
"minAppVersion": "0.15.0",
"description": "Convert Markdown notes to RED (Xiaohongshu) style images",
"author": "Yeban",