Skip to content

magpie v0.5.4

Choose a tag to compare

@github-actions github-actions released this 01 Oct 03:30
v0.5.4
fc48d6b

Fixed

  • Searching the selected text copies the selection again (#17). The copy shortcut went out while Option+Shift of the hotkey were still held, so apps saw ⌥⇧⌘C (Ctrl+Alt+C on Windows) and copied nothing, and magpie opened with an empty box. It now waits for those keys to come up, then waits for the app to actually write the clipboard instead of a fixed 160 ms. Text that was already on the clipboard counts as copied too.
  • The preview pane no longer jumps when it opens (#11). It used to show inside the narrow window first and then move right as the window widened. It now stays outside the window's edge until the window has grown, and closing works the other way round.

Changed

  • On macOS, without the Accessibility permission the selection search says so, and macOS shows its prompt with a button to the right settings page.
  • Each selection search writes one line to the log (timings, length, whether the clipboard changed; never the text), so an empty result can be traced.

修复

  • 划词搜索又能取到选中的文字了(#17)。之前模拟复制快捷键时,热键里的 Option+Shift 往往还按着,应用收到的是 ⌥⇧⌘C(Windows 上是 Ctrl+Alt+C),什么也没复制,magpie 就弹出一个空框。现在先等这些键松开再复制,并且等应用真正写入剪贴板,不再固定只等 160 毫秒。选中的文字原本就在剪贴板里,也算复制成功。
  • 打开预览时不再跳一下(#11)。之前预览会先挤在原来的窄窗口里,窗口加宽后才移到右边。现在窗口加宽完成之前,预览留在窗口边缘之外;关闭时顺序反过来。

变化

  • macOS 上没有辅助功能权限时,划词搜索会直接提示,系统也会弹窗,带按钮打开对应的设置页。
  • 每次划词搜索在日志里记一行(耗时、字数、剪贴板有没有变化,不记内容),结果为空时能查到原因。