Obsidian 自定义附件位置插件使用教程

Obsidian 自定义附件位置插件使用教程

obsidian-custom-attachment-locationCustomize attachment location with variables($filename, $data, etc) like typora.项目地址:https://gitcode.com/gh_mirrors/ob/obsidian-custom-attachment-location

1. 项目的目录结构及介绍

Obsidian 自定义附件位置插件的目录结构如下:

obsidian-custom-attachment-location/
├── main.js
├── manifest.json
└── README.md
  • main.js: 插件的主逻辑文件。
  • manifest.json: 插件的配置文件,包含插件的基本信息和依赖项。
  • README.md: 插件的说明文档,包含安装和使用指南。

2. 项目的启动文件介绍

main.js 是插件的启动文件,负责初始化和加载插件的主要功能。以下是 main.js 的基本结构:

module.exports = (plugin) => {
    // 插件初始化代码
    plugin.register(() => {
        // 插件主要功能代码
    });
};

main.js 中,你可以找到插件的核心逻辑,包括如何处理自定义附件位置的功能。

3. 项目的配置文件介绍

manifest.json 是插件的配置文件,包含插件的基本信息和依赖项。以下是 manifest.json 的基本结构:

{
    "id": "obsidian-custom-attachment-location",
    "name": "Custom Attachment Location",
    "version": "1.0.0",
    "minAppVersion": "0.11.0",
    "description": "自定义附件位置,类似 Typora。",
    "author": "RainCat1998",
    "authorUrl": "https://github.com/RainCat1998",
    "isDesktopOnly": false
}
  • id: 插件的唯一标识符。
  • name: 插件的名称。
  • version: 插件的版本号。
  • minAppVersion: 插件支持的最低 Obsidian 版本。
  • description: 插件的描述信息。
  • author: 插件的作者。
  • authorUrl: 作者的链接。
  • isDesktopOnly: 是否仅支持桌面版 Obsidian。

通过 manifest.json,Obsidian 可以识别并加载插件,同时提供插件的基本信息。

obsidian-custom-attachment-locationCustomize attachment location with variables($filename, $data, etc) like typora.项目地址:https://gitcode.com/gh_mirrors/ob/obsidian-custom-attachment-location

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

林菁琚

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值