mersol100 downloads保存笔记时自动以正文第一句或标题行命名文件;支持中文「。」与英文「.」等句末标点,跳过 Mr./版本号缩写,双链自动同步。 Auto-titles notes from the first sentence or title line; supports Chinese「。」/English「.」, skips Mr./v1.0.0, wikilinks sync.
保存笔记时,自动把「正文第一句」或「标题行」填成文件名(在 Obsidian 中,标题就是文件名)。 Automatically renames your note to its first sentence or title line on save — in Obsidian the note title is the filename.
很多笔记软件都有这个能力:写完第一句话,文件名就自动变成这句话。本插件把这个体验带到 Obsidian,而且是自动的——你正常写、正常保存(或自动保存),标题自己就填好了,不需要任何手动操作。 English: Many note apps turn your first sentence into the file name automatically. This plugin brings that experience to Obsidian, and it's automatic — you just write and save (or let auto-save run), and the title fills itself in with no manual step.
新建 / 粘贴笔记后,满足下面任一条件就会自动重命名文件(即设置标题): English — After you create or paste a note, the file is renamed automatically whenever either condition below is met:
. ! ?(含全角 .),所以中英文笔记都能用。英文句点 . 做了防误判处理:Mr. Dr. vs.、v1.0.0、e.g. 这类缩写 / 版本号 / 缩写词不会误截断。# 标题语法)较短、且后面还跟着正文——比如你从别处粘贴了一份带标题的报告,第一行那句标题就会直接变成文件名。English:
. ! ? (including fullwidth .), so both Chinese and English notes work. English periods . are protected against mis-cuts: abbreviations / version numbers like Mr. Dr. vs. v1.0.0 e.g. won't be split prematurely.# heading syntax is ignored automatically) is short and followed by body text — e.g. when you paste in a report that has a title on its first line, that title becomes the file name directly.重命名通过 Obsidian 原生 fileManager.renameFile 完成,指向这篇笔记的 [[双链]] 会自动同步更新,不会断链。
English: Renaming goes through Obsidian's native fileManager.renameFile, so any [[wikilinks]] pointing to this note update automatically — no broken links.
.obsidian、.workbuddy、copilot、对话稿/原始ai对话txt,可在设置里增删。\ / : * ? " < > | # ^ [ ] 会自动去掉,符合 Windows 命名规则。English:
.obsidian, .workbuddy, copilot, and 对话稿/原始ai对话txt; you can edit this list in settings.\ / : * ? " < > | # ^ [ ]) are stripped automatically, keeping names Windows-safe.| 设置 | 说明 |
|---|---|
| 启用 | 总开关 |
| 标题最大长度 | 最终文件名截断到的字符数(默认 60) |
| 标题行最大长度 | 第一行短于此值且后面有正文时,直接用该行做标题;设为 0 可关闭「标题行 + 换行」规则(默认 40) |
| 跳过目录 | 逗号分隔,从 vault 根算起 |
| Setting | Description |
|---|---|
| Enable | Master switch |
| Max title length | The file name is truncated to this many characters (default 60) |
| Title-line max length | If the first line is shorter than this and followed by body text, it becomes the title; set to 0 to disable the title-line rule (default 40) |
| Skip directories | Comma-separated, counted from the vault root |
另外,命令面板里还有一条 「对当前笔记立即执行(第一句/标题行→标题)」,可对任意已存在的笔记手动触发一次。 English: There is also a command-palette action — "Run now on current note (first sentence / title line → title)" — that manually triggers the rename once for any existing note.
BRAT: Add a beta plugin for testing。https://github.com/ri0977-code/first-sentence-title,确认添加并启用。English:
BRAT: Add a beta plugin for testing from the command palette.https://github.com/ri0977-code/first-sentence-title, then confirm and enable.直接在 Obsidian 设置 → 第三方插件 → 浏览 里搜索 First Sentence Title 安装即可;或打开 插件页面 点 Add to Obsidian。
English: Just search First Sentence Title in Settings → Community plugins → Browse inside Obsidian, or open the plugin page and click Add to Obsidian.
把本仓库的 main.js 和 manifest.json 两个文件放进 vault 的 .obsidian/plugins/first-sentence-title/ 目录,重启 Obsidian 并在 设置 → 第三方插件 中启用即可。
English: Copy main.js and manifest.json from this repo into your vault's .obsidian/plugins/first-sentence-title/ folder, restart Obsidian, and enable it under Settings → Community plugins.
鸿蒙(HarmonyOS)系统下通过「卓易通」等安卓兼容容器安装的 Obsidian 安卓版,与上述安卓侧载方式完全一致。 English: On HarmonyOS, the Obsidian Android app installed via an Android compatibility container such as "卓易通" works exactly the same as the manual Android sideload above.
MIT License. © 2026 WorkBuddy · 小台 English: MIT License. © 2026 WorkBuddy · 小台