跳到正文

Trimmy 版本记录

Peter Steinberger · 一款 macOS 菜单栏应用,可将复制的多行 shell 片段整理成一条可粘贴命令。

Cask系统工具 754
主页
安装命令
brew install --cask trimmy
近 30 天安装
23
App榜第 1808
近一年安装
147
365 天累计
最新版本
0.11.7
下载大小
2.8MB
zip
更新节奏
每周
近 30 天 1 个版本
  1. 0.11.7

    最新补丁

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 15 起

    Trimmy 0.11.7 不再把 javascript 这类词当成 shell 命令,并把 Sparkle 升到 2.10.1。

    命令
    上述命令名只按完整词匹配。javascript、NodeJS 这类文字保持原样。
    更新
    应用内更新组件升到 Sparkle 2.10.1。

    Trimmy 0.11.7 于 2026 年 11 月 16 日发布。它不再改写以 shell 命令前缀开头的普通文字,并把 Sparkle 更新组件升到 2.10.1。来源:https://github.com/steipete/Trimmy/releases/tag/v0.11.7

    • java、echo、env、export、node、fish、brew 和 bundle 只按完整词匹配。
    • javascript、NodeJS 这类普通文字不再被当成 shell 命令。
    • gitk、python3、nodemon、envsubst 和 fish_indent 仍然匹配。
    • 应用内更新使用 Sparkle 2.10.1。
  2. 0.11.6

    补丁

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 15 起

    Trimmy 0.11.6:保留 URL 原始内容并修复登录启动设置

    Trimmy 0.11.6 原样保留 URL 中未被移除的查询字段,改进登录时启动失败后的恢复处理,并避免 CLI 输出末尾出现重复换行。

    Trimmy 0.11.6 包含三项改动:

    • URL 清理: 原样保留未被移除的查询字段,包括格式错误的百分号转义序列。
    • 设置: 登录时启动失败时显示恢复指引,撤销未能生效的开关更改,并在启动注册失败时保留已保存的选择。
    • CLI: 避免在末尾追加重复换行,同时继续根据是否实际清理了文本来确定退出码。

    https://github.com/steipete/Trimmy/releases/tag/v0.11.6

  3. 0.11.5

    补丁

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 15 起

    路径引号处理现在仅为实际存在的文件系统路径添加引号,保留含斜杠的普通文本和不存在的路径,并支持含空格的主目录相对路径及相对路径。

    路径引号处理现在仅为实际存在的文件系统路径添加引号,保留含斜杠的普通文本和不存在的路径,并支持含空格的主目录相对路径及相对路径。

    Source: https://github.com/steipete/Trimmy/releases/tag/v0.11.5

  4. 0.11.3

    展开

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 15 起

    改进 URL、Shell 命令和 Markdown 清理,同时保留周围的普通文本。

    修复换行的 URL,同时保留其后的普通文本以及主机、路径、查询和片段的续行。保留彼此独立的大写 Shell 参数,移除单词内部的反斜杠续行时不插入空格。

    保留框线边栏周围的换行和文本间距,包括 Unicode 分隔符和大小写混合的远程主机名。改进命令检测,保留与短命令前缀相似的普通文本及 /etc 等文件系统说明,同时仍识别真正的 Shell 命令和带命名空间的斜杠命令。

    保持独立连字符两侧的间距,重新连接换行的 Markdown 链接,不改变行内代码或括号中的文本。macOS CI 与发布构建迁移至 xcode-27,保留 macOS 15 支持、原生 SwiftPM 构建以及 Linux Swift 6.3/6.4 验证。

    Trimmy 0.11.3

  5. 0.11.2

    展开

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 15 起

    更谨慎地清理 shell 提示符和 URL,明确报告 CLI 输入错误,并改进应用更新处理。

    清理
    保留 shell 变量引用及 Markdown 标题。保留名称经过百分号编码的内容标识 URL 参数,并保留 URL 后的文本。
    CLI 与应用
    文件、stdin 或 UTF-8 解码错误会注明输入来源。将 Sparkle 升级至 2.10.0,以改进更新处理。

    Trimmy 0.11.2 对 shell 提示符的清理更加谨慎:如果 Markdown 标题中的词只是以某个命令名称开头,就会保留该标题;shell 变量引用也会保留。URL 清理现在会保留名称经过百分号编码的内容标识参数,并且在 URL 后还有其他文本时不再改动该 URL。

    CLI 报告文件、stdin 或 UTF-8 解码失败时,现在会指出输入来源,而不是错误地声称没有提供输入。应用还将 Sparkle 升级至 2.10.0,其中包含 macOS 27 增量更新压缩修复,并改进下载进度处理。

    来源:https://github.com/steipete/Trimmy/releases/tag/v0.11.2

  6. 0.11.1

    展开

    OpenNavo 编辑 Homebrew 收录

    更新剪贴板处理、文本清理与重排、快捷键和 CLI 行为。现在构建需要 Swift 6.3 或更高版本;macOS 15 支持保持不变。

    剪贴板
    恢复所有格式,且不覆盖更新的复制内容。手动粘贴使用最新复制的内容。
    文本
    调整 Markdown 重排、清理和预览标记。识别 CRLF/CR 命令续行。
    其他
    修复快捷键持久化与显示,以及 CLI 输入和参数处理。构建需要 Swift 6.3+;macOS 15 支持不变。

    Trimmy 0.11.1 更新了剪贴板处理:手动粘贴使用最新复制的内容;恢复时保留所有剪贴板格式,且不会覆盖更新的复制内容。文本重排会在类似围栏的行带有尾随文本时保留围栏内容,并且只在列表具有有效的 Markdown 编号列表标记时重写列表。清理功能会保留路径中的字面字符和主目录展开;保留空行时会让类似占位符的文本保持原样,并识别 CRLF/CR 命令续行。预览标记针对表情符号和插入字符进行了修正,敏感度示例使用实际的清理引擎。

    快捷键修复让已清除的粘贴快捷键在重启后仍保持未设置状态,并正确显示录制的功能键和键盘布局对应项。CLI 现在可从 stdin 正确读取 --trim -,将 -f 等短选项与文件输入区分开,并报告无效参数。安装器在授权期间保持响应,并支持包含 shell 特殊字符的路径。

    由于 Swift 6.2.4 在编译更新后的快捷键依赖项中的隔离反初始化器时会崩溃,构建需要 Swift 6.3 或更高版本。macOS 15 支持保持不变。发布说明

  7. 0.11.0

    展开

    OpenNavo 编辑 Homebrew 收录

    新增可选的复制文本散文与 Markdown 重排,并提供手动粘贴操作和可选的行首空行清理。

    重排
    可选地重排复制的散文和 Markdown。自动重排默认关闭。遵循应用和网站排除设置,并保留围栏代码示例。两种重排方式都会跳过可识别的源代码和配置内容。
    粘贴
    手动操作现为“粘贴重排后的文本”。可选地在重排时移除行首空行;默认关闭。

    Trimmy 0.11.0 为复制的散文和 Markdown 新增可选重排。启用自动重排后,会合并硬换行文本,同时遵循应用和网站排除设置,并在命令清理前保留围栏代码示例。此设置默认关闭。

    手动操作扩展为粘贴重排后的文本。自动和手动重排共用检查逻辑,不会处理可识别的源代码和配置内容。另有一个选项可在重排时移除行首空行;该选项默认关闭,以保留现有粘贴行为。

    来源:Trimmy 0.11.0 发布说明

  8. 0.10.2

    展开

    GitHub Release Homebrew 收录

    Highlights: Safer automatic updates and clipboard handling.

    • Dependencies: update Sparkle to 2.9.6 for installer security fixes and MenuBarExtraAccess to 1.3.1 for macOS 27 compatibility.
    • Terminal detection now recognizes cmux by bundle identifier and app name, so copies use terminal-specific trimming (thanks @gustavosmendes).
    • Preserve YAML block-scalar indentation during automatic trimming in the app and CLI (thanks @rewtraw).
    • Dependencies: update KeyboardShortcuts to 2.4.0 for shortcut-recorder fixes while preserving Swift 6.2 compatibility.
    • Build: validate macOS builds with Swift 6.2.4 while retaining Swift 6.2 and macOS 15 support.
  9. 0.10.1

    展开

    GitHub Release Homebrew 收录

    • Settings: reorganize controls into focused General, Trimming, Rules, Shortcuts, Advanced, and About tabs, with low-frequency cleanup options under Advanced and a compact native macOS layout.
  10. 0.10.0

    展开

    GitHub Release

    • Auto-trim can now be disabled for configured apps and browser sites while keeping manual paste actions available (#15).
    • Menu: add an optional “Paste without Query Params” action for copied URLs, gated by Settings → General and preserving configured content-identity parameters (#27, thanks @danfooo).
    • Menu paste-action badges now show a single clear character count instead of duplicate “trimmed” counters (#27, thanks @danfooo).
  11. 0.9.0

    展开

    GitHub Release Homebrew 收录

    • Claude Code: add optional prompt-decoration flattening for copied slash commands while preserving ordinary wrapped prose (#19, thanks @evoleinik).
    • Settings: add an option to hide the menu bar icon while keeping Trimmy running (#24, thanks @qazi0).
    • Text cleanup: dedent copied prose where most paragraph lines share the same leading whitespace (#10, thanks @arunsathiya).
    • Website: add a copy button for the Homebrew install command.
  12. 0.8.0

    展开

    GitHub Release Homebrew 收录

    • Added a menu-only “Paste Reformatted Markdown” action to join wrapped markdown paragraphs and bullet lists while preserving blank lines and fenced code blocks.
    • Path quoting now only wraps standalone paths (not commands or sentences) when they contain spaces (#17, thanks @n0an).
  13. 0.7.0

    展开

    GitHub Release

    • Highlight: Context-aware trimming with terminal detection, plus per-terminal aggressiveness (Cmd-C tracking + frontmost-app fallback).
    • Terminal detection now covers Ghostty, WezTerm, Alacritty, Hyper, and Warp Stable bundle IDs for context-aware trimming.
    • Aggressiveness now splits between general apps and terminals (defaults: Low + Normal), plus a “None” option to disable auto-trim in regular apps.
    • Settings: added Advanced tab and moved CLI installer, debug tools, and clipboard fallbacks there.
    • Menu bar icon now animates whenever a trim happens.
  14. 0.6.4

    展开

    GitHub Release

    • Sparkle: auto-download updates when auto-check is enabled, and only show the restart menu entry once an update is ready.
    • Command detection: flatten “command + indented args” copies (e.g. emails + flags) into a single pasteable line at Normal aggressiveness; skip transforms for snippets longer than 4 lines.
    • Dependencies: refreshed SwiftPM pins (Sparkle 2.8.1, KeyboardShortcuts 1.17.0, MenuBarExtraAccess 1.2.2).
  15. 0.6.3

    展开

    GitHub Release

    • CI: publish Linux TrimmyCLI release assets (.tar.gz + .sha256) so Linux users can install without building from source.
    • Thanks to @JaviSoto for contributing the workflow.
  16. 0.6.2

    展开

    GitHub Release

    • Box-drawing cleanup now skips when no box glyphs are present, preserving JSON/YAML indentation and spacing (thanks @ahmedasmar).
    • TrimmyCLI now writes errors via FileHandle.standardError to satisfy Swift 6/Linux concurrency checks while keeping the same stderr output and exit codes (thanks @JaviSoto).
    • Trimmy is now available via Homebrew: brew install --cask steipete/tap/trimmy (updates via brew upgrade --cask steipete/tap/trimmy).
  17. 0.6.1

    展开

    GitHub Release

    • Command detection now keeps multi-line command blocks intact when there are three or more standalone command-looking lines and no explicit joiners (, |, &&, ||, ;); pipelines/continuations still flatten as before.
    • Align app and CLI heuristics so both respect the above guard; CLI High/manual overrides still flatten.
    • Added regression tests covering structured JSON copies and the pyenv init snippet to prevent unintended flattening in Normal mode.
  18. 0.6.0

    展开

    GitHub Release

    • Added in-app Accessibility permission prompts and menu/settings callouts so “Paste Trimmed/Original” explains how to enable ⌘V injection when permission is missing.
    • Added CLI installer in Settings → General that symlinks the bundled TrimmyCLI into /usr/local/bin and /opt/homebrew/bin as trimmy.
  19. 0.5.1

    展开

    GitHub Release

    • Auto-trim (Low/Normal) now skips list-like snippets (bullets, numbered rows, plain token/ID columns) and copies with more than four newlines to avoid mangling hashes/IDs; High/manual override still flattens on demand. Regression tests cover the list/id scenarios.
  20. 0.5.0

    展开

    GitHub Release

    • Added headless CLI (TrimmyCLI) with --trim, stdin support, JSON output, and the same trimming heuristics and options as the app.
    • Improved struck-out previews: removed decorative pipes are struck correctly, whitespace removals render as dotted strikes, and truncation no longer hides removed characters.
  21. 0.4.7

    展开

    GitHub Release

    • Packaging: SwiftPM resource bundles are now symlinked to the app root so KeyboardShortcuts’ Bundle.module resolves in user builds (prevents Settings → Shortcuts crash).
  22. 0.4.6

    展开

    GitHub Release

    Trimmy 0.4.6

    • Fix terminal-wrapped copies: remove inserted box glyphs in the middle of URLs/paths so commands like curl ... releases/ │ download/... stay valid.
    • Keep trimmed badge logic intact (Paste Trimmed shows “X trimmed” when bytes were removed), Original shows only character count.
  23. 0.4.5

    展开

    GitHub Release

    Trimmy 0.4.5

    • Menu previews show up to 100 characters for both trimmed and original rows, with badges reflecting the longer limit.
    • Paste Original row no longer shows a “trimmed” badge—only character count—while Paste Trimmed keeps the trimmed count.
    • Box-drawing cleanup strips decorative “│” glyphs after pipes (and when copied alone); added regression tests for terminal-style decorations.
  24. 0.4.4

    展开

    GitHub Release

    Trimmy 0.4.4

    • Fix crash on Settings → Shortcuts by shipping the KeyboardShortcuts resource bundle; packaging now fails fast if SwiftPM bundles are missing.
    • Added regression test for KeyboardShortcuts recorder init and strengthened packaging checks.