Obsidian Paste Image Rename 插件使用教程

随笔23小时前发布 股海封侯
2 0 0

Obsidian Paste Image Rename 插件使用教程

obsidian-paste-image-renameRenames pasted images and all the other attachments added to the vault项目地址:https://gitcode.com/gh_mirrors/ob/obsidian-paste-image-rename

项目目录结构及介绍


obsidian-paste-image-rename/
├── .github/
│   └── workflows/
│       └── ci.yml
├── .obsidian/
│   └── plugins/
│       └── obsidian-paste-image-rename/
│           ├── main.js
│           ├── manifest.json
│           └── styles.css
├── .gitignore
├── LICENSE
├── README.md
└── package.json

.github/workflows/ci.yml: GitHub Actions 的 CI 配置文件。.obsidian/plugins/obsidian-paste-image-rename/: 插件的核心文件夹。
main.js: 插件的主逻辑文件。manifest.json: 插件的元数据文件,包含插件的名称、版本等信息。styles.css: 插件的样式文件。 .gitignore: Git 忽略文件配置。LICENSE: 项目的开源许可证。README.md: 项目的说明文档。package.json: 项目的依赖管理文件。

项目的启动文件介绍

插件的启动文件是 .obsidian/plugins/obsidian-paste-image-rename/main.js。这个文件包含了插件的主要逻辑,负责处理图片粘贴和重命名的功能。

项目的配置文件介绍

插件的配置文件是 .obsidian/plugins/obsidian-paste-image-rename/manifest.json。这个文件包含了插件的元数据,如插件的名称、版本、作者等信息。以下是一个示例:


{
  "id": "obsidian-paste-image-rename",
  "name": "Paste Image Rename",
  "version": "1.0.0",
  "minAppVersion": "0.12.0",
  "description": "Rename pasted images in Obsidian.",
  "author": "Reorx",
  "authorUrl": "https://github.com/reorx",
  "isDesktopOnly": false
}

id: 插件的唯一标识符。name: 插件的名称。version: 插件的版本号。minAppVersion: 插件支持的最低 Obsidian 版本。description: 插件的描述。author: 插件的作者。authorUrl: 作者的网址。isDesktopOnly: 是否仅支持桌面版 Obsidian。

obsidian-paste-image-renameRenames pasted images and all the other attachments added to the vault项目地址:https://gitcode.com/gh_mirrors/ob/obsidian-paste-image-rename

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...