Skip to content

v0.3.4

Choose a tag to compare

@github-actions github-actions released this 18 Sep 08:35
· 23 commits to main since this release

中文

新功能

  • 长按文件 = 这个文件的全部操作。 以前长按和右下角那颗下载按钮是同一件事的两种尺寸;
    现在它是一扇门:Markdown 预览 / 查看文件信息 / 下载到手机(文件传输开着时才出现)。
    信息面板给的是大小、修改时间、创建时间、权限、属主与用户组、完整路径 ——
    机器没记录创建时间就明说「文件系统未记录」,不会画成 1970;目录不显示大小,
    因为那是目录记录本身的大小,不是里面的内容。

  • Markdown 预览:标题、列表、任务列表(画出来的勾选框)、引用、表格(真网格,
    按 :--: 对齐)、代码块语法高亮(24 种语言,右上角一键复制)、Mermaid 图。
    代码块横向滚动而不折行 —— 折过的续行看起来就是下一条语句。图表渲染失败会退回源码
    并说明原因,不会白屏。

    Mermaid 是原生渲染的(纯 Dart 移植的 mermaid.js + 布局引擎,28 种图型):
    没有 WebView、没有 JavaScript、不联网 —— 这些文件在别人机器上,而手机常在一条不稳的
    网络上。点图进全屏可缩放。

    两个诚实的取舍:渲染出来的链接点了是复制(这个应用没有浏览器),图片显示为带名字的
    占位块
    (README 里的图通常是相对路径,手机上看不见,也不该假装看得见)。

English

New

  • A long press on a file is now everything you can do with it: Markdown preview, file info,
    and download (when file transfer is on). The long press used to be a second size of the
    trailing download button. The info panel shows size, modified and created times, permissions,
    owner, group and the full path — a filesystem that records no creation time says so rather
    than showing 1970.

  • Markdown preview: headings, lists, task lists with drawn checkboxes, block quotes,
    tables (a real grid, honouring :--: alignment), syntax-highlighted code blocks
    (24 languages, one tap to copy) and Mermaid diagrams. Code scrolls sideways instead of
    wrapping, and a diagram that does not parse falls back to its source with a note rather than
    a blank box.

    Mermaid is rendered natively (a pure-Dart port of mermaid.js with its layout engine,
    28 diagram types): no WebView, no JavaScript, no network. Tap a diagram to zoom.

    Two honest trade-offs: a link is copied (this app has no browser), and an image is a
    named placeholder — a README's images are usually relative paths that mean nothing
    outside the repository.


Installing

Android — adb install -r HerdrPocket-<version>-arm64-v8a.apk
(use armeabi-v7a for a 32-bit device, or the universal APK if you
do not know which one you have).

macOS — open the .dmg and drag the app out. The build is
unsigned, so the first launch needs either a right-click → Open,
or:

xattr -d com.apple.quarantine "/Applications/herdr_pocket.app"

Full Changelog: v0.3.3...v0.3.4