Skip to content

1.0.0

Choose a tag to compare

@lishuai1993 lishuai1993 released this 16 Sep 12:50
· 22 commits to main since this release

Drag Image Auto Arrange

Automatically arrange consecutive image embeds into side-by-side rows — like Feishu / Lark documents. Drag to reorder, drag the divider to resize, and each row keeps its own layout across sessions.

This is the first release of the plugin. Feel free to use it, and if you run into any issues, please report them on the GitHub page. Thank you!

https://github.com/lishuai1993/DragImageAutoArrange.git

Features

  • Automatic rows — consecutive image embeds on adjacent lines are laid out side by side instead of stacking vertically.
  • Drag to reorder — drag an image within a row, or onto another row, to move it.
  • Draggable dividers — drag the divider between two images to shift the width split.
  • Height equalizer — double-click the row's top balance line to make every image in a multi-image row the same height.
  • Corner handles — drag a handle on an image's corner to change its size.
  • Per-image resize — resize a standalone image, or pick a percentage of its natural width from the right-click menu.
  • Alignment — align an image left, center, or right within its row.
  • Rotate / flip — rotate by 90° / 180° and flip horizontally or vertically. The orientation is stored as a parameter on the note line (a readable word such as r90 / fv), so the image file itself is never re-encoded and each change is a single undoable edit. Reset returns the image to its original orientation.
  • Right-click menu — one unified menu for alignment, rotation, resizing, copy, cut, and file operations. Copy and cut put the bitmap on the clipboard together with the image's in-vault reference: pasting inside this vault lands as a ![[…]] link instead of minting a duplicate attachment, while pasting into another vault or app yields the image itself — PNG and JPEG files go over byte-for-byte, lossy formats are re-encoded as JPEG. Cut additionally removes that one reference, and deletes the local file only when nothing else in the vault points at it.
  • Reading Mode support — rows render in Reading Mode too, including each image's rotate/flip orientation; editing operations are greyed out.
  • Vault-wide maintenance — two passes in the settings tab: clear everything the plugin wrote out of every note, or normalise every line it can host into the standard parameter form. Both scan the vault and show you the exact scope before writing.

License

MIT — see LICENSE.

Drag Image Auto Arrange(中文)

自动把连续的图片嵌入排列成并排的多图行,效果类似飞书 / Lark 文档。可拖拽排序、拖拽分隔条调整宽度,每行都会各自记住布局。

功能

  • 自动成行:相邻行上的连续图片嵌入会自动并排显示,而不是逐张纵向堆叠。
  • 拖拽排序:可在行内拖动图片,也可拖到另一行,实现位置调整。
  • 可拖拽分隔条:拖动两张图之间的分隔条,即可改变宽度分配。
  • 顶部均衡线:双击多图行顶部的均衡线,即可快速让行内各图高度对齐。
  • 角点手柄:拖拽图像角点手柄即可改变图像大小。
  • 单图缩放:可缩放独立图片,也可在右键菜单中按原图宽度的百分比选择尺寸。
  • 对齐:可将图片在所在行内左对齐、居中或右对齐。
  • 旋转 / 翻转:支持 90° / 180° 旋转与水平、垂直翻转。朝向以行参数的形式写回笔记(可读词,如 r90 / fv),原图文件自始至终不被重编码,每次操作都是一步可撤销的编辑;重置后回到原始朝向。
  • 右键菜单:对齐、旋转、缩放、复制、剪切与文件操作收敛在同一个菜单中。复制与剪切会把位图写入剪贴板,并一并带上该图在库内的引用:在本库粘贴落成 ![[…]] 链接,而不是另存出一份重复附件;粘到其它仓库或 App 则落成图像本身 —— png / jpg 原样写入,webp、avif 等有损格式转码为 JPEG。剪切还会移除该处引用,并且仅当全库再无其他引用时才删除本地文件。
  • 阅读模式支持:多图行在阅读模式下同样渲染,旋转 / 翻转朝向一并呈现,编辑类操作置灰。
  • 全库格式维护:设置页提供两个全库动作 —— 把插件写入的参数从全部笔记中清除,或把所有可托管的图片行归一化为标准参数格式。两者都先扫描、把改动范围显示给你,确认之后才写入。

这是该插件的第一个版本,请尽情使用,如有问题,请及时在 GitHub 主页反馈,谢谢!

https://github.com/lishuai1993/DragImageAutoArrange.git

许可

MIT,详见 LICENSE。