Li Zhentang70 downloadsReverse all image embeds in the active note with one click. Click again to restore the original order.
A focused Obsidian plugin that reverses image and video embeds together in the active Markdown note. Click again to restore the original order.
.mkv, .mov, .mp4, .ogv, and .webm videos.Use the ribbon button, choose Reverse image and video order from the active note's three-dot menu, or run Reverse image and video order in the active note from the command palette. You can assign a keyboard shortcut in Obsidian settings. Each run is one atomic editor change, so both clicking again and Obsidian's native undo restore the original order.
一个极简 Obsidian 插件:一键反转当前 Markdown 文档中的全部图片和视频,它们共用同一顺序;再点一次即可恢复原顺序。
每次操作都是一次原子编辑,因此也可以使用 Obsidian 自带的撤销功能恢复。
插件自动跟随 Obsidian 的界面语言:中文界面显示中文,其他语言显示英文。
![[image.png]]、![[image.png|300]]![[video.mp4]]、![[video.mp4|640x360]].mkv、.mov、.mp4、.ogv、.webm、网络图片、引用式图片[](target),链接会跟随媒体一起移动插件只交换完整图片或视频嵌入语法,周围的文字、空行、缩进和结构不会移动。YAML 属性区、代码块、行内代码、HTML 注释、转义语法、HTML <img> 和 <video> 会被忽略。Obsidian 内链只有在实际解析到受支持的图片或视频文件时才参与反转;笔记、PDF、音频和失效链接不会被改动。
main.js 和 manifest.json 放到仓库目录:
.obsidian/plugins/image-order-reverser/npm install
npm test
npm run build
构建产物为项目根目录下的 main.js。