Skip to content

Bangs v0.2.1

Choose a tag to compare

@gxlself gxlself released this 20 Sep 09:17
· 53 commits to main since this release

刘海里多了一张待办清单,歌词也不再整批地找不到。

改了什么

待办 — 面板顶栏多了一栏「待办」:输入框里回车记一条,做完点一下,字就逐个散开飘走、行随之折起,不留已完成。刚记下的那条会在收起态的刘海旁待五分钟(正在放歌时不抢歌词)。这是刘海唯一会用到键盘的地方,也只在输入框聚焦时才借:macOS 下面板这时才允许成为 key window,Windows 下临时摘掉 WS_EX_NOACTIVATE,按 Esc、点别处或面板收起都会立刻把焦点还回去。清单存在配置目录的 todos.json 里。

歌词找得到了 — 两类歌以前查不到词。一是播放器给的是罗马音歌手名(Apple Music 把赵雷给成 “Lei Zhao”),搜索被带偏,同专辑的其他歌反而把正主挤出了结果;二是标题是繁体(當時的月亮)而曲库里是简体(当时的月亮),字面对不上就整首被丢掉。现在候选放宽到 20 条、必要时再用纯标题查一次(只认标题完全一致),比对前用系统自带的转写折叠繁简,同分时保留接口自己的排序——合唱版和 remix 不会再顶掉原唱。

托盘里能选显示器了 — 「显示器」子菜单里的显示器条目会成批消失,只剩「跟随主显示器」:菜单在后台线程被重建(六小时一次的版本检查、显示器热插拔都会触发),而显示器名字只有主线程问得到。菜单重建改回主线程就好了,这个毛病 0.1.3 就有。

安装

macOS 的包用 Developer ID 签了名并经过 Apple 公证,下载下来双击就能开。Windows 安装包没有签名,SmartScreen 会拦一次:更多信息 → 仍要运行。设置、暂存架和剪贴板历史都保留,直接装新包覆盖即可。

官网:https://gxlself.github.io/bangs/


A to-do list moves into the notch, and lyrics no longer go missing for whole groups of songs.

What's new

To-do — a new To-do tab in the panel's top bar: press Return in the field to add a line, and click it once it's done — its letters scatter and drift away as the row folds up, and nothing completed is kept. The newest line waits beside the collapsed notch for five minutes (not while music is playing, so it doesn't displace the lyrics). This is the only place the notch uses the keyboard, and only while the field is focused: on macOS that's the only time the panel may become the key window, and on Windows WS_EX_NOACTIVATE is lifted for as long — pressing Esc, clicking elsewhere or the panel collapsing hands focus straight back. The list is kept in todos.json in the config directory.

Lyrics are found now — two kinds of songs used to come up empty. One: the player gives a romanised artist name (Apple Music gives 赵雷 as "Lei Zhao"), which steers the search off course until other songs from the same album push the right one out of the results. Two: the title is in Traditional characters (當時的月亮) while the catalogue has it in Simplified (当时的月亮), and a literal mismatch threw the whole song out. Now up to 20 candidates are considered, a title-only search runs when needed (exact title matches only), Traditional and Simplified are folded together with the system's built-in transliteration before comparing, and ties keep the service's own order — duets and remixes no longer push out the original.

Pick a display from the tray again — the displays in the Display submenu would vanish all at once, leaving only "Follow the main display": the menu was being rebuilt on a background thread (by the six-hourly version check and by plugging displays in or out), and display names can only be asked for on the main thread. Rebuilding the menu on the main thread fixes it; the bug had been there since 0.1.3.

Install

The macOS build is signed with a Developer ID and notarized by Apple, so it opens with a double-click. The Windows installer is unsigned, so SmartScreen stops it once: More info → Run anyway. Settings, the shelf and clipboard history are all kept — just install the new package over the old one.

Website: https://gxlself.github.io/bangs/